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<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
ConstructorDescriptionIronGolemAssembler
(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
constructMenu
(BlockMenuPreset preset) getBody()
int
This method returns the max amount of electricity this Block can hold.int
getHead()
Methods inherited from class io.github.thebusybiscuit.slimefun4.implementation.items.electric.machines.entities.AbstractEntityAssembler
getEnergyComponentType, getItemHandler
Methods inherited from class io.github.thebusybiscuit.slimefun4.implementation.items.SimpleSlimefunItem
preRegister
Methods inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addItemHandler, addItemSetting, addOfficialWikipage, callItemHandler, canUse, 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, 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, isChargeable, removeCharge, setCharge
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
-
IronGolemAssembler
@ParametersAreNonnullByDefault public IronGolemAssembler(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, 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.
-
getEnergyConsumption
public int getEnergyConsumption()- Specified by:
getEnergyConsumption
in classAbstractEntityAssembler<IronGolem>
-
getHead
- Specified by:
getHead
in classAbstractEntityAssembler<IronGolem>
-
getHeadBorder
- Specified by:
getHeadBorder
in classAbstractEntityAssembler<IronGolem>
-
getBody
- Specified by:
getBody
in classAbstractEntityAssembler<IronGolem>
-
getBodyBorder
- Specified by:
getBodyBorder
in classAbstractEntityAssembler<IronGolem>
-
constructMenu
- Overrides:
constructMenu
in classAbstractEntityAssembler<IronGolem>
-
spawnEntity
- Specified by:
spawnEntity
in classAbstractEntityAssembler<IronGolem>
-