Class AbstractMachineBlock
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
net.guizhanss.guizhanlib.slimefun.machines.MenuBlock
net.guizhanss.guizhanlib.slimefun.machines.TickingMenuBlock
net.guizhanss.guizhanlib.slimefun.machines.AbstractMachineBlock
- All Implemented Interfaces:
io.github.thebusybiscuit.slimefun4.core.attributes.EnergyNetComponent,io.github.thebusybiscuit.slimefun4.core.attributes.ItemAttribute,io.github.thebusybiscuit.slimefun4.core.attributes.Placeable
@ParametersAreNonnullByDefault
public abstract class AbstractMachineBlock
extends TickingMenuBlock
implements io.github.thebusybiscuit.slimefun4.core.attributes.EnergyNetComponent
-
Field Summary
FieldsFields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench -
Constructor Summary
ConstructorsConstructorDescriptionAbstractMachineBlock(io.github.thebusybiscuit.slimefun4.api.items.ItemGroup itemGroup, io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack item, io.github.thebusybiscuit.slimefun4.api.recipes.RecipeType recipeType, ItemStack[] recipe) -
Method Summary
Modifier and TypeMethodDescriptionfinal intfinal io.github.thebusybiscuit.slimefun4.core.networks.energy.EnergyNetComponentTypeprotected abstract ItemStackprotected abstract intprotected abstract booleanfinal voidregister(io.github.thebusybiscuit.slimefun4.api.SlimefunAddon addon) protected voidMethods inherited from class net.guizhanss.guizhanlib.slimefun.machines.TickingMenuBlock
isSyncMethods inherited from class net.guizhanss.guizhanlib.slimefun.machines.MenuBlock
getInputSlots, getInputSlots, getOutputSlots, getTransportSlots, onBreak, onNewInstance, onPlace, postRegister, setupMethods 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, getRecipe, getRecipeOutput, getRecipeType, getResearch, getState, getWikipage, hashCode, hasResearch, info, isDisabled, isDisabledIn, isDisenchantable, isEnchantable, isHidden, isItem, isItemStackImmutable, isTicking, isUseableInWorkbench, load, preRegister, 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, getCharge, getCharge, isChargeable, removeCharge, setChargeMethods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.ItemAttribute
getIdMethods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.Placeable
useVanillaBlockBreaking
-
Field Details
-
energyPerTick
protected int energyPerTick -
energyCapacity
protected int energyCapacity
-
-
Constructor Details
-
AbstractMachineBlock
public AbstractMachineBlock(io.github.thebusybiscuit.slimefun4.api.items.ItemGroup itemGroup, io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack item, io.github.thebusybiscuit.slimefun4.api.recipes.RecipeType recipeType, ItemStack[] recipe)
-
-
Method Details
-
tick
- Specified by:
tickin classTickingMenuBlock
-
process
-
getStatusSlot
protected abstract int getStatusSlot() -
getNoEnergyItem
-
getCapacity
public final int getCapacity()- Specified by:
getCapacityin interfaceio.github.thebusybiscuit.slimefun4.core.attributes.EnergyNetComponent
-
getEnergyComponentType
@Nonnull public final io.github.thebusybiscuit.slimefun4.core.networks.energy.EnergyNetComponentType getEnergyComponentType()- Specified by:
getEnergyComponentTypein interfaceio.github.thebusybiscuit.slimefun4.core.attributes.EnergyNetComponent
-
register
public final void register(@Nonnull io.github.thebusybiscuit.slimefun4.api.SlimefunAddon addon) - Overrides:
registerin classio.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
-