Class IronGolemAssembler
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
io.github.thebusybiscuit.slimefun4.implementation.items.SimpleSlimefunItem<BlockTicker>
io.github.thebusybiscuit.slimefun4.implementation.items.electric.machines.entities.AbstractEntityAssembler<org.bukkit.entity.IronGolem>
io.github.thebusybiscuit.slimefun4.implementation.items.electric.machines.entities.IronGolemAssembler
- All Implemented Interfaces:
EnergyNetComponent,ItemAttribute,Placeable
The
IronGolemAssembler is an electrical machine that can automatically spawn
a IronGolem if the required ingredients have been provided.- 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
ConstructorsConstructorDescriptionIronGolemAssembler(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, org.bukkit.inventory.ItemStack[] recipe) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconstructMenu(BlockMenuPreset preset) Constructs the menu preset for this entity assembler.org.bukkit.inventory.ItemStackgetBody()Returns the item used as the body/ingredient for entity assembly.org.bukkit.MaterialReturns the material used for the body border in the GUI.intintReturns the amount of energy consumed per assembly operation.org.bukkit.inventory.ItemStackgetHead()Returns the item used as the head/ingredient for entity assembly.org.bukkit.MaterialReturns the material used for the head border in the GUI.org.bukkit.entity.IronGolemspawnEntity(org.bukkit.Location l) Spawns the entity at the given location.Methods inherited from class io.github.thebusybiscuit.slimefun4.implementation.items.electric.machines.entities.AbstractEntityAssembler
getEnergyComponentType, getItemHandlerMethods inherited from class io.github.thebusybiscuit.slimefun4.implementation.items.SimpleSlimefunItem
preRegisterMethods 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, warnMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.EnergyNetComponent
addCharge, addCharge, getCapacityLong, getCharge, getCharge, getCharge, getCharge, getChargeLong, getChargeLong, getChargeLong, isChargeable, removeCharge, removeCharge, setCharge, setChargeMethods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.ItemAttribute
getIdMethods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.Placeable
useVanillaBlockBreaking
-
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:AbstractEntityAssemblerReturns the amount of energy consumed per assembly operation.- Specified by:
getEnergyConsumptionin classAbstractEntityAssembler<org.bukkit.entity.IronGolem>- Returns:
- The energy consumption
-
getHead
public org.bukkit.inventory.ItemStack getHead()Description copied from class:AbstractEntityAssemblerReturns the item used as the head/ingredient for entity assembly.- Specified by:
getHeadin classAbstractEntityAssembler<org.bukkit.entity.IronGolem>- Returns:
- The head item
-
getHeadBorder
public org.bukkit.Material getHeadBorder()Description copied from class:AbstractEntityAssemblerReturns the material used for the head border in the GUI.- Specified by:
getHeadBorderin classAbstractEntityAssembler<org.bukkit.entity.IronGolem>- Returns:
- The head border material
-
getBody
public org.bukkit.inventory.ItemStack getBody()Description copied from class:AbstractEntityAssemblerReturns the item used as the body/ingredient for entity assembly.- Specified by:
getBodyin classAbstractEntityAssembler<org.bukkit.entity.IronGolem>- Returns:
- The body item
-
getBodyBorder
public org.bukkit.Material getBodyBorder()Description copied from class:AbstractEntityAssemblerReturns the material used for the body border in the GUI.- Specified by:
getBodyBorderin classAbstractEntityAssembler<org.bukkit.entity.IronGolem>- Returns:
- The body border material
-
constructMenu
Description copied from class:AbstractEntityAssemblerConstructs the menu preset for this entity assembler.- Overrides:
constructMenuin classAbstractEntityAssembler<org.bukkit.entity.IronGolem>- Parameters:
preset- TheBlockMenuPresetto construct
-
spawnEntity
public org.bukkit.entity.IronGolem spawnEntity(org.bukkit.Location l) Description copied from class:AbstractEntityAssemblerSpawns the entity at the given location.- Specified by:
spawnEntityin classAbstractEntityAssembler<org.bukkit.entity.IronGolem>- Parameters:
l- The location to spawn the entity- Returns:
- The spawned entity
-