Class NixieTubeBlockEntity

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 NixieTubeBlockEntity extends SmartBlockEntity
  • Field Details

  • Constructor Details

    • NixieTubeBlockEntity

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

    • registerCapabilities

      public static void registerCapabilities(net.neoforged.neoforge.capabilities.RegisterCapabilitiesEvent event)
    • tick

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

      public void initialize()
      Overrides:
      initialize in class SmartBlockEntity
    • reactsToRedstone

      public boolean reactsToRedstone()
    • getDisplayedStrings

      public net.createmod.catnip.data.Couple<String> getDisplayedStrings()
    • getFullText

      public net.minecraft.network.chat.MutableComponent getFullText()
    • updateRedstoneStrength

      public void updateRedstoneStrength(int signalStrength)
    • displayCustomText

      public void displayCustomText(String tagElement, int nixiePositionInRow)
    • displayEmptyText

      public void displayEmptyText(int nixiePositionInRow)
    • updateDisplayedStrings

      public void updateDisplayedStrings()
    • clearCustomText

      public void clearCustomText()
    • getRedstoneStrength

      public int getRedstoneStrength()
    • read

      protected void read(net.minecraft.nbt.CompoundTag nbt, 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
    • write

      protected void write(net.minecraft.nbt.CompoundTag nbt, 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
    • addBehaviours

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

      public void invalidate()
      Description copied from class: SmartBlockEntity
      Block destroyed or Chunk unloaded. Usually invalidates capabilities
      Overrides:
      invalidate in class SmartBlockEntity