Class ExplosiveTool
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
io.github.thebusybiscuit.slimefun4.implementation.items.SimpleSlimefunItem<ToolUseHandler>
io.github.thebusybiscuit.slimefun4.implementation.items.tools.ExplosiveTool
- All Implemented Interfaces:
DamageableItem,ItemAttribute,NotPlaceable,Placeable
- Direct Known Subclasses:
ExplosivePickaxe,ExplosiveShovel
public class ExplosiveTool
extends SimpleSlimefunItem<ToolUseHandler>
implements NotPlaceable, DamageableItem
- Author:
- TheBusyBiscuit
- See Also:
-
Field Summary
Fields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench -
Constructor Summary
ConstructorsConstructorDescriptionExplosiveTool(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanThis returns theItemHandlerthat will be added to thisSlimefunItem.booleanImplement this method to make the behaviour of this interface dependent on the state of your object.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
damageItem, evaluateUnbreakingEnchantmentMethods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.ItemAttribute
getIdMethods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.Placeable
useVanillaBlockBreaking
-
Constructor Details
-
ExplosiveTool
@ParametersAreNonnullByDefault public ExplosiveTool(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe)
-
-
Method Details
-
getItemHandler
Description copied from class:SimpleSlimefunItemThis returns theItemHandlerthat will be added to thisSlimefunItem.- Specified by:
getItemHandlerin classSimpleSlimefunItem<ToolUseHandler>- Returns:
- The
ItemHandlerthat should be added to thisSlimefunItem
-
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
-
canBreak
-