Class FlapDisplayBlockEntity

All Implemented Interfaces:
IHaveCustomOverlayIcon, IHaveGoggleInformation, IHaveHoveringInformation, PartialSafeNBT, SpecialBlockEntityItemRequirement, IInteractionChecker, net.createmod.ponder.api.VirtualBlockEntity, net.neoforged.neoforge.attachment.IAttachmentHolder, net.neoforged.neoforge.common.extensions.IBlockEntityExtension

public class FlapDisplayBlockEntity extends KineticBlockEntity
  • Field Details

    • lines

      public List<FlapDisplayLayout> lines
    • isController

      public boolean isController
    • isRunning

      public boolean isRunning
    • xSize

      public int xSize
    • ySize

      public int ySize
    • colour

      public net.minecraft.world.item.DyeColor[] colour
    • glowingLines

      public boolean[] glowingLines
    • manualLines

      public boolean[] manualLines
  • Constructor Details

    • FlapDisplayBlockEntity

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

    • initialize

      public void initialize()
      Overrides:
      initialize in class KineticBlockEntity
    • lazyTick

      public void lazyTick()
      Overrides:
      lazyTick in class SmartBlockEntity
    • updateControllerStatus

      public void updateControllerStatus()
    • tick

      public void tick()
      Overrides:
      tick in class KineticBlockEntity
    • isNoisy

      protected boolean isNoisy()
      Overrides:
      isNoisy in class KineticBlockEntity
    • isSpeedRequirementFulfilled

      public boolean isSpeedRequirementFulfilled()
      Overrides:
      isSpeedRequirementFulfilled in class KineticBlockEntity
    • applyTextManually

      public void applyTextManually(int lineIndex, net.minecraft.network.chat.Component componentText)
    • setColour

      public void setColour(int lineIndex, net.minecraft.world.item.DyeColor color)
    • setGlowing

      public void setGlowing(int lineIndex)
    • getLines

      public List<FlapDisplayLayout> getLines()
    • initDefaultSections

      public void initDefaultSections()
    • getMaxCharCount

      public int getMaxCharCount()
    • getMaxCharCount

      public int getMaxCharCount(int gaps)
    • write

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

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

      public int getLineIndexAt(double yCoord)
    • getController

      public FlapDisplayBlockEntity getController()
    • createRenderBoundingBox

      protected net.minecraft.world.phys.AABB createRenderBoundingBox()
      Overrides:
      createRenderBoundingBox in class CachedRenderBBBlockEntity
    • getDirection

      public net.minecraft.core.Direction getDirection()
    • addBehaviours

      public void addBehaviours(List<BlockEntityBehaviour> behaviours)
      Overrides:
      addBehaviours in class KineticBlockEntity
    • getLineColor

      public int getLineColor(int line)
    • isLineGlowing

      public boolean isLineGlowing(int line)