All Implemented Interfaces:
EnergyNetComponent, ItemAttribute, Placeable

public class IronGolemAssembler extends AbstractEntityAssembler<org.bukkit.entity.IronGolem>
The IronGolemAssembler is an electrical machine that can automatically spawn a IronGolem if the required ingredients have been provided.
Author:
TheBusyBiscuit
See Also:
  • Constructor Details

    • IronGolemAssembler

      @ParametersAreNonnullByDefault public IronGolemAssembler(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, org.bukkit.inventory.ItemStack[] recipe)
  • Method Details

    • getCapacity

      public int getCapacity()
    • getEnergyConsumption

      public int getEnergyConsumption()
      Description copied from class: AbstractEntityAssembler
      Returns the amount of energy consumed per assembly operation.
      Specified by:
      getEnergyConsumption in class AbstractEntityAssembler<org.bukkit.entity.IronGolem>
      Returns:
      The energy consumption
    • getHead

      public org.bukkit.inventory.ItemStack getHead()
      Description copied from class: AbstractEntityAssembler
      Returns the item used as the head/ingredient for entity assembly.
      Specified by:
      getHead in class AbstractEntityAssembler<org.bukkit.entity.IronGolem>
      Returns:
      The head item
    • getHeadBorder

      public org.bukkit.Material getHeadBorder()
      Description copied from class: AbstractEntityAssembler
      Returns the material used for the head border in the GUI.
      Specified by:
      getHeadBorder in class AbstractEntityAssembler<org.bukkit.entity.IronGolem>
      Returns:
      The head border material
    • getBody

      public org.bukkit.inventory.ItemStack getBody()
      Description copied from class: AbstractEntityAssembler
      Returns the item used as the body/ingredient for entity assembly.
      Specified by:
      getBody in class AbstractEntityAssembler<org.bukkit.entity.IronGolem>
      Returns:
      The body item
    • getBodyBorder

      public org.bukkit.Material getBodyBorder()
      Description copied from class: AbstractEntityAssembler
      Returns the material used for the body border in the GUI.
      Specified by:
      getBodyBorder in class AbstractEntityAssembler<org.bukkit.entity.IronGolem>
      Returns:
      The body border material
    • constructMenu

      protected void constructMenu(BlockMenuPreset preset)
      Description copied from class: AbstractEntityAssembler
      Constructs the menu preset for this entity assembler.
      Overrides:
      constructMenu in class AbstractEntityAssembler<org.bukkit.entity.IronGolem>
      Parameters:
      preset - The BlockMenuPreset to construct
    • spawnEntity

      public org.bukkit.entity.IronGolem spawnEntity(org.bukkit.Location l)
      Description copied from class: AbstractEntityAssembler
      Spawns the entity at the given location.
      Specified by:
      spawnEntity in class AbstractEntityAssembler<org.bukkit.entity.IronGolem>
      Parameters:
      l - The location to spawn the entity
      Returns:
      The spawned entity