Class TreeGrowthAccelerator
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
io.github.thebusybiscuit.slimefun4.implementation.items.electric.machines.accelerators.AbstractGrowthAccelerator
io.github.thebusybiscuit.slimefun4.implementation.items.electric.machines.accelerators.TreeGrowthAccelerator
- All Implemented Interfaces:
EnergyNetComponent
,ItemAttribute
,Placeable
,InventoryBlock
The
TreeGrowthAccelerator
is an electrical machine that works similar to
the CropGrowthAccelerator
but boosts the growth of nearby trees.- 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
ConstructorsConstructorDescriptionTreeGrowthAccelerator
(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, org.bukkit.inventory.ItemStack[] recipe) -
Method Summary
Modifier and TypeMethodDescriptionint
This method returns the max amount of electricity this Block can hold.protected boolean
isFertilizer
(org.bukkit.inventory.ItemStack item) protected void
tick
(org.bukkit.block.Block b) Methods inherited from class io.github.thebusybiscuit.slimefun4.implementation.items.electric.machines.accelerators.AbstractGrowthAccelerator
getEnergyComponentType, getInputSlots, getOutputSlots, preRegister
Methods inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addItemHandler, addItemSetting, addOfficialWikipage, addWikiPage, callItemHandler, canUse, disable, enable, 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, loadDataByDefault, postRegister, register, sendDeprecationWarning, setHidden, setItemGroup, setRecipe, setRecipeOutput, setRecipeType, setResearch, setUseableInWorkbench, toString, warn
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.EnergyNetComponent
addCharge, getCharge, getCharge, getCharge, isChargeable, removeCharge, setCharge
Methods inherited from interface me.mrCookieSlime.Slimefun.Objects.SlimefunItem.interfaces.InventoryBlock
createPreset, createPreset
Methods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.ItemAttribute
getId
Methods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.Placeable
useVanillaBlockBreaking
-
Constructor Details
-
TreeGrowthAccelerator
@ParametersAreNonnullByDefault public TreeGrowthAccelerator(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, org.bukkit.inventory.ItemStack[] recipe)
-
-
Method Details
-
getCapacity
public int getCapacity()Description copied from interface:EnergyNetComponent
This method returns the max amount of electricity this Block can hold. If the capacity is zero, then this Block cannot hold any electricity.- Returns:
- The max amount of electricity this Block can store.
-
tick
protected void tick(@Nonnull org.bukkit.block.Block b) - Specified by:
tick
in classAbstractGrowthAccelerator
-
isFertilizer
protected boolean isFertilizer(@Nullable org.bukkit.inventory.ItemStack item)
-