Class ClimbingPick
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
io.github.thebusybiscuit.slimefun4.implementation.items.SimpleSlimefunItem<ItemUseHandler>
io.github.thebusybiscuit.slimefun4.implementation.items.tools.ClimbingPick
- All Implemented Interfaces:
DamageableItem,ItemAttribute,Placeable,RecipeDisplayItem
public class ClimbingPick
extends SimpleSlimefunItem<ItemUseHandler>
implements DamageableItem, RecipeDisplayItem
The
ClimbingPick launches you 1 block upwards when you right click
on a ice Block.
Every level of efficiency Enchantment increases the launch by 0.2 blocks.- Author:
- Linox, TheBusyBiscuit
-
Field Summary
Fields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench -
Constructor Summary
ConstructorsConstructorDescriptionClimbingPick(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidThis method adds every surface that is climbable by default.protected voidaddSurface(Material type, double defaultValue) voiddamageItem(Player p, ItemStack item) This method will damage the givenItemStackonce.doublegetClimbingSpeed(ItemStack item, Material type) doublegetClimbingSpeed(Material type) This returns the climbing speed for a givenMaterial.This is the list of items to display alongside thisSlimefunItem.This returns theItemHandlerthat will be added to thisSlimefunItem.booleanImplement this method to make the behaviour of this interface dependent on the state of your object.booleanThis returns whether theClimbingPickneeds to be held in both arms to work.Methods inherited from class io.github.thebusybiscuit.slimefun4.implementation.items.SimpleSlimefunItem
preRegisterMethods inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addItemHandler, addItemSetting, addOfficialWikipage, callItemHandler, canUse, equals, error, getAddon, getBlockTicker, getById, getByItem, getDrops, getDrops, getHandlers, getId, getItem, getItemGroup, getItemName, getItemSetting, getItemSettings, getOptionalById, getOptionalByItem, getRecipe, getRecipeOutput, getRecipeType, getResearch, getState, getWikipage, hashCode, hasResearch, info, isDisabled, isDisabledIn, isDisenchantable, isEnchantable, isHidden, isItem, isItemStackImmutable, isTicking, isUseableInWorkbench, load, postRegister, register, sendDeprecationWarning, setHidden, setItemGroup, setRecipe, setRecipeOutput, setRecipeType, setResearch, setUseableInWorkbench, toString, warnMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.DamageableItem
evaluateUnbreakingEnchantmentMethods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.ItemAttribute
getIdMethods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.Placeable
useVanillaBlockBreakingMethods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.RecipeDisplayItem
getRecipeSectionLabel
-
Constructor Details
-
ClimbingPick
@ParametersAreNonnullByDefault public ClimbingPick(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe)
-
-
Method Details
-
addDefaultSurfaces
protected void addDefaultSurfaces()This method adds every surface that is climbable by default. -
addSurface
-
isDualWieldingEnabled
public boolean isDualWieldingEnabled()This returns whether theClimbingPickneeds to be held in both arms to work.- Returns:
- Whether dual wielding is enabled
-
getClimbableSurfaces
- Returns:
- A
Collectionof everyClimbableSurface
-
getClimbingSpeed
This returns the climbing speed for a givenMaterial. -
getClimbingSpeed
- Parameters:
item- theClimbingPick'sItemStacktype- TheMaterial- Returns:
- The climbing speed or 0.
-
getItemHandler
Description copied from class:SimpleSlimefunItemThis returns theItemHandlerthat will be added to thisSlimefunItem.- Specified by:
getItemHandlerin classSimpleSlimefunItem<ItemUseHandler>- Returns:
- The
ItemHandlerthat should be added to thisSlimefunItem
-
damageItem
Description copied from interface:DamageableItemThis method will damage the givenItemStackonce. It also takes into account theEnchantmentUnbreaking. It will only apply the damage ifDamageableItem.isDamageable()returned true.- Specified by:
damageItemin interfaceDamageableItem- Parameters:
p- ThePlayerto which the item belongsitem- TheItemStackto damage
-
isDamageable
public boolean isDamageable()Description copied from interface:DamageableItemImplement this method to make the behaviour of this interface dependent on the state of your object. You could add aConfigoption to toggle the behaviour for example.- Specified by:
isDamageablein interfaceDamageableItem- Returns:
- Whether this
SlimefunItemis damageable
-
getDisplayRecipes
Description copied from interface:RecipeDisplayItemThis is the list of items to display alongside thisSlimefunItem. Note that these items will be filled in from top to bottom first. So if you want it to express a recipe, add your inputItemStackand then your outputItemStack.- Specified by:
getDisplayRecipesin interfaceRecipeDisplayItem- Returns:
- The recipes to display in the
SlimefunGuide
-
getLabelLocalPath
- Specified by:
getLabelLocalPathin interfaceRecipeDisplayItem
-