Class FactoryPanelSupportBehaviour
java.lang.Object
com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
com.simibubi.create.content.logistics.factoryBoard.FactoryPanelSupportBehaviour
-
Field Summary
FieldsFields inherited from class com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
blockEntity -
Constructor Summary
ConstructorsConstructorDescriptionFactoryPanelSupportBehaviour(SmartBlockEntity be, Supplier<Boolean> isOutput, Supplier<Boolean> outputPower, Runnable onNotify) -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect(FactoryPanelBehaviour panel) voiddestroy()Block destroyed or removed.voiddisconnect(FactoryPanelBehaviour panel) getType()booleanisOutput()voidvoidvoidread(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) booleanvoidtick()voidwrite(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) Methods inherited from class com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
get, get, getPos, getRequiredItems, getWorld, initialize, isSafeNBT, lazyTick, onBlockChanged, onNeighborChanged, setLazyTickRate, unload, writeSafe
-
Field Details
-
TYPE
-
-
Constructor Details
-
FactoryPanelSupportBehaviour
-
-
Method Details
-
shouldPanelBePowered
public boolean shouldPanelBePowered() -
isOutput
public boolean isOutput() -
notifyLink
public void notifyLink() -
destroy
public void destroy()Description copied from class:BlockEntityBehaviourBlock destroyed or removed. Requires block to call ITE::onRemove- Overrides:
destroyin classBlockEntityBehaviour
-
notifyPanels
public void notifyPanels() -
shouldBePoweredTristate
-
getLinkedPanels
-
connect
-
disconnect
-
tick
public void tick()- Overrides:
tickin classBlockEntityBehaviour
-
write
public void write(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) - Overrides:
writein classBlockEntityBehaviour
-
read
public void read(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) - Overrides:
readin classBlockEntityBehaviour
-
getType
- Specified by:
getTypein classBlockEntityBehaviour
-