Class JetBoots
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
io.github.thebusybiscuit.slimefun4.implementation.items.electric.gadgets.JetBoots
- All Implemented Interfaces:
ItemAttribute,Placeable,Rechargeable
JetBoots allow you to hover for a bit.
You can find the actual behaviour in the JetBootsTask class.- 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
ConstructorsConstructorDescriptionJetBoots(ItemGroup itemGroup, SlimefunItemStack item, ItemStack[] recipe, double speed, float capacity) -
Method Summary
Modifier and TypeMethodDescriptionfloatgetMaxItemCharge(ItemStack item) This method returns the maximum charge the givenItemStackis capable of holding.doublegetSpeed()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, preRegister, 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.ItemAttribute
getIdMethods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.Placeable
useVanillaBlockBreakingMethods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.Rechargeable
addItemCharge, getItemCharge, removeItemCharge, setItemCharge
-
Constructor Details
-
JetBoots
@ParametersAreNonnullByDefault public JetBoots(ItemGroup itemGroup, SlimefunItemStack item, ItemStack[] recipe, double speed, float capacity)
-
-
Method Details
-
getSpeed
public double getSpeed() -
getMaxItemCharge
Description copied from interface:RechargeableThis method returns the maximum charge the givenItemStackis capable of holding.- Specified by:
getMaxItemChargein interfaceRechargeable- Parameters:
item- TheItemStackfor which to determine the maximum charge- Returns:
- The maximum energy charge for this
ItemStack
-