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
    Modifier and Type
    Class
    Description
    class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final BooleanSupplier
     
     
    final 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

    Constructors
    Constructor
    Description
    RedstoneProgrammerBehaviour(com.simibubi.create.foundation.blockEntity.SmartBlockEntity be, BooleanSupplier powerChecker)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.inventory.AbstractContainerMenu
    createMenu(int containerId, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.entity.player.Player player)
     
     
    net.minecraft.network.chat.Component
     
    com.simibubi.create.foundation.blockEntity.behaviour.BehaviourType<?>
     
    void
     
    void
    read(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket)
     
    boolean
    readFromClipboard(@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)
     
    void
     
    void
     
    void
    write(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket)
     
    boolean
    writeToClipboard(@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, writeSafe

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.neoforged.neoforge.client.extensions.IMenuProviderExtension

    shouldTriggerClientSideContainerClosingOnOpen, writeClientSideData
  • Field Details

  • Constructor Details

    • RedstoneProgrammerBehaviour

      public RedstoneProgrammerBehaviour(com.simibubi.create.foundation.blockEntity.SmartBlockEntity be, BooleanSupplier powerChecker)
  • Method Details

    • initialize

      public void initialize()
      Overrides:
      initialize in class com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
    • unload

      public void unload()
      Overrides:
      unload in class com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
    • tick

      public void tick()
      Overrides:
      tick in class com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
    • read

      public void read(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket)
      Overrides:
      read in class com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
    • write

      public void write(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket)
      Overrides:
      write in class com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
    • getType

      public com.simibubi.create.foundation.blockEntity.behaviour.BehaviourType<?> getType()
      Specified by:
      getType in class com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
    • getClipboardKey

      public String getClipboardKey()
      Specified by:
      getClipboardKey in interface com.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:
      writeToClipboard in interface com.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:
      readFromClipboard in interface com.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:
      createMenu in interface net.minecraft.world.inventory.MenuConstructor
    • getDisplayName

      public net.minecraft.network.chat.Component getDisplayName()
      Specified by:
      getDisplayName in interface net.minecraft.world.MenuProvider