Class SlimefunBow
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
io.github.thebusybiscuit.slimefun4.implementation.items.weapons.SlimefunBow
- All Implemented Interfaces:
Placeable
- Direct Known Subclasses:
ExplosiveBow,IcyBow
This class represents a
SlimefunItem that is a Bow.
It comes with a BowShootHandler to handle actions that shall be performed
whenever an Arrow fired from this SlimefunBow hits a target.- Author:
- TheBusyBiscuit
-
Field Summary
Fields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSlimefunBow(ItemGroup itemGroup, SlimefunItemStack item, ItemStack[] recipe) -
Method Summary
Modifier and TypeMethodDescriptionabstract BowShootHandleronShoot()voidThis method is called beforeSlimefunItem.register(SlimefunAddon).Methods 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.Placeable
useVanillaBlockBreaking
-
Constructor Details
-
SlimefunBow
@ParametersAreNonnullByDefault protected SlimefunBow(ItemGroup itemGroup, SlimefunItemStack item, ItemStack[] recipe)
-
-
Method Details
-
preRegister
public void preRegister()Description copied from class:SlimefunItemThis method is called beforeSlimefunItem.register(SlimefunAddon). Override this method to add any additional setup, adding anItemHandlerfor example.- Overrides:
preRegisterin classSlimefunItem
-
onShoot
-