java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
io.github.thebusybiscuit.slimefun4.implementation.items.electric.gadgets.MultiTool
All Implemented Interfaces:
ItemAttribute, Placeable, Rechargeable

public class MultiTool extends SlimefunItem implements Rechargeable
The MultiTool is an electric device which can mimic the behaviour of any other SlimefunItem.
Author:
TheBusyBiscuit
  • Constructor Details

  • Method Details

    • getMaxItemCharge

      public float getMaxItemCharge(org.bukkit.inventory.ItemStack item)
      Description copied from interface: Rechargeable
      This method returns the maximum charge the given ItemStack is capable of holding.
      Specified by:
      getMaxItemCharge in interface Rechargeable
      Parameters:
      item - The ItemStack for which to determine the maximum charge
      Returns:
      The maximum energy charge for this ItemStack
    • getItemUseHandler

      @Nonnull protected ItemUseHandler getItemUseHandler()
    • preRegister

      public void preRegister()
      Description copied from class: SlimefunItem
      This method is called before SlimefunItem.register(SlimefunAddon). Override this method to add any additional setup, adding an ItemHandler for example.
      Overrides:
      preRegister in class SlimefunItem