Class RedstoneLinkBlockEntity

java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
All Implemented Interfaces:
PartialSafeNBT, SpecialBlockEntityItemRequirement, IInteractionChecker, net.createmod.ponder.api.VirtualBlockEntity, net.neoforged.neoforge.attachment.IAttachmentHolder, net.neoforged.neoforge.common.extensions.IBlockEntityExtension

public class RedstoneLinkBlockEntity extends SmartBlockEntity
  • Field Details

  • Constructor Details

    • RedstoneLinkBlockEntity

      public RedstoneLinkBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
  • Method Details

    • addBehaviours

      public void addBehaviours(List<BlockEntityBehaviour> behaviours)
      Specified by:
      addBehaviours in class SmartBlockEntity
    • addBehavioursDeferred

      public void addBehavioursDeferred(List<BlockEntityBehaviour> behaviours)
      Description copied from class: SmartBlockEntity
      Gets called just before reading block entity data for behaviours. Register anything here that depends on your custom BE data.
      Overrides:
      addBehavioursDeferred in class SmartBlockEntity
    • createLink

      protected void createLink()
    • getSignal

      public int getSignal()
    • setSignal

      public void setSignal(int power)
    • transmit

      public void transmit(int strength)
    • write

      public void write(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket)
      Description copied from class: SmartBlockEntity
      Hook only these in future subclasses of STE
      Overrides:
      write in class SmartBlockEntity
    • read

      protected void read(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket)
      Description copied from class: SmartBlockEntity
      Hook only these in future subclasses of STE
      Overrides:
      read in class SmartBlockEntity
    • tick

      public void tick()
      Overrides:
      tick in class SmartBlockEntity
    • remove

      public void remove()
      Description copied from class: SmartBlockEntity
      Block destroyed or picked up by a contraption. Usually detaches kinetics
      Overrides:
      remove in class SmartBlockEntity
    • updateSelfAndAttached

      public void updateSelfAndAttached(net.minecraft.world.level.block.state.BlockState blockState)
    • isTransmitterBlock

      protected Boolean isTransmitterBlock()
    • getReceivedSignal

      public int getReceivedSignal()