All Implemented Interfaces:
EnergyNetComponent, ItemAttribute, Placeable, InventoryBlock

public class TreeGrowthAccelerator extends AbstractGrowthAccelerator
The TreeGrowthAccelerator is an electrical machine that works similar to the CropGrowthAccelerator but boosts the growth of nearby trees.
Author:
TheBusyBiscuit
See Also:
  • 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 class AbstractGrowthAccelerator
    • isFertilizer

      protected boolean isFertilizer(@Nullable org.bukkit.inventory.ItemStack item)