Class RedstoneProgrammerBehaviour
java.lang.Object
com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
com.petrolpark.compat.create.common.redstone.programmer.RedstoneProgrammerBehaviour
- All Implemented Interfaces:
com.simibubi.create.content.equipment.clipboard.ClipboardCloneable,net.minecraft.world.inventory.MenuConstructor,net.minecraft.world.MenuProvider,net.neoforged.neoforge.client.extensions.IMenuProviderExtension
public class RedstoneProgrammerBehaviour
extends com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
implements com.simibubi.create.content.equipment.clipboard.ClipboardCloneable, net.minecraft.world.MenuProvider
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BooleanSupplierfinal com.mojang.serialization.Codec<RedstoneProgrammerBehaviour.BehaviourRedstoneProgram> static final com.simibubi.create.foundation.blockEntity.behaviour.BehaviourType<RedstoneProgrammerBehaviour> Fields inherited from class com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
blockEntity -
Constructor Summary
ConstructorsConstructorDescriptionRedstoneProgrammerBehaviour(com.simibubi.create.foundation.blockEntity.SmartBlockEntity be, BooleanSupplier powerChecker) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.inventory.AbstractContainerMenucreateMenu(int containerId, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.entity.player.Player player) net.minecraft.network.chat.Componentcom.simibubi.create.foundation.blockEntity.behaviour.BehaviourType<?> getType()voidvoidread(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) booleanreadFromClipboard(@NotNull net.minecraft.core.HolderLookup.Provider registries, net.minecraft.nbt.CompoundTag tag, net.minecraft.world.entity.player.Player player, net.minecraft.core.Direction side, boolean simulate) voidtick()voidunload()voidwrite(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) booleanwriteToClipboard(@NotNull net.minecraft.core.HolderLookup.Provider registries, net.minecraft.nbt.CompoundTag tag, net.minecraft.core.Direction side) Methods inherited from class com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
destroy, get, get, getPos, getRequiredItems, getWorld, isSafeNBT, lazyTick, onBlockChanged, onNeighborChanged, setLazyTickRate, writeSafeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.client.extensions.IMenuProviderExtension
shouldTriggerClientSideContainerClosingOnOpen, writeClientSideData
-
Field Details
-
TYPE
public static final com.simibubi.create.foundation.blockEntity.behaviour.BehaviourType<RedstoneProgrammerBehaviour> TYPE -
powerChecker
-
program
-
programCodec
public final com.mojang.serialization.Codec<RedstoneProgrammerBehaviour.BehaviourRedstoneProgram> programCodec
-
-
Constructor Details
-
RedstoneProgrammerBehaviour
public RedstoneProgrammerBehaviour(com.simibubi.create.foundation.blockEntity.SmartBlockEntity be, BooleanSupplier powerChecker)
-
-
Method Details
-
initialize
public void initialize()- Overrides:
initializein classcom.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
-
unload
public void unload()- Overrides:
unloadin classcom.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
-
tick
public void tick()- Overrides:
tickin classcom.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
-
read
public void read(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) - Overrides:
readin classcom.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
-
write
public void write(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) - Overrides:
writein classcom.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
-
getType
public com.simibubi.create.foundation.blockEntity.behaviour.BehaviourType<?> getType()- Specified by:
getTypein classcom.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
-
getClipboardKey
- Specified by:
getClipboardKeyin interfacecom.simibubi.create.content.equipment.clipboard.ClipboardCloneable
-
writeToClipboard
public boolean writeToClipboard(@NotNull @NotNull net.minecraft.core.HolderLookup.Provider registries, net.minecraft.nbt.CompoundTag tag, net.minecraft.core.Direction side) - Specified by:
writeToClipboardin interfacecom.simibubi.create.content.equipment.clipboard.ClipboardCloneable
-
readFromClipboard
public boolean readFromClipboard(@NotNull @NotNull net.minecraft.core.HolderLookup.Provider registries, net.minecraft.nbt.CompoundTag tag, net.minecraft.world.entity.player.Player player, net.minecraft.core.Direction side, boolean simulate) - Specified by:
readFromClipboardin interfacecom.simibubi.create.content.equipment.clipboard.ClipboardCloneable
-
createMenu
public net.minecraft.world.inventory.AbstractContainerMenu createMenu(int containerId, @Nonnull net.minecraft.world.entity.player.Inventory playerInventory, @Nonnull net.minecraft.world.entity.player.Player player) - Specified by:
createMenuin interfacenet.minecraft.world.inventory.MenuConstructor
-
getDisplayName
public net.minecraft.network.chat.Component getDisplayName()- Specified by:
getDisplayNamein interfacenet.minecraft.world.MenuProvider
-