Class StormStaff
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
io.github.thebusybiscuit.slimefun4.implementation.items.SimpleSlimefunItem<ItemUseHandler>
io.github.thebusybiscuit.slimefun4.implementation.items.LimitedUseItem
io.github.thebusybiscuit.slimefun4.implementation.items.magical.staves.StormStaff
- All Implemented Interfaces:
Placeable
This
SlimefunItem casts a LightningStrike where you are pointing.
Unlike the other Staves, it has a limited amount of uses.- Author:
- Linox, Walshy, TheBusyBiscuit
-
Field Summary
FieldsFields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench -
Constructor Summary
ConstructorsConstructorDescriptionStormStaff(ItemGroup group, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) -
Method Summary
Modifier and TypeMethodDescriptionThis returns theItemHandlerthat will be added to thisSlimefunItem.protected NamespacedKeyReturns theNamespacedKeyunder which will the amount of uses left stored.Methods inherited from class io.github.thebusybiscuit.slimefun4.implementation.items.LimitedUseItem
damageItem, getMaxUseCount, register, setMaxUseCountMethods 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, 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.Placeable
useVanillaBlockBreaking
-
Field Details
-
MAX_USES
public static final int MAX_USES- See Also:
-
-
Constructor Details
-
StormStaff
@ParametersAreNonnullByDefault public StormStaff(ItemGroup group, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe)
-
-
Method Details
-
getStorageKey
Description copied from class:LimitedUseItemReturns theNamespacedKeyunder which will the amount of uses left stored.- Overrides:
getStorageKeyin classLimitedUseItem- Returns:
- The
NamespacedKeyto store/load the amount of uses
-
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
-