Class DisplayLinkBlockEntity

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

public class DisplayLinkBlockEntity extends LinkWithBulbBlockEntity
  • Field Details

  • Constructor Details

    • DisplayLinkBlockEntity

      public DisplayLinkBlockEntity(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)
    • addBehaviours

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

      public void tick()
      Overrides:
      tick in class LinkWithBulbBlockEntity
    • tickSource

      public void tickSource()
    • onNoLongerPowered

      public void onNoLongerPowered()
    • updateGatheredData

      public void updateGatheredData()
    • writeSafe

      public void writeSafe(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries)
      Description copied from interface: PartialSafeNBT
      This will always be called from the logical server
      Specified by:
      writeSafe in interface PartialSafeNBT
      Overrides:
      writeSafe in class SmartBlockEntity
    • 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 LinkWithBulbBlockEntity
    • 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 LinkWithBulbBlockEntity
    • invalidate

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

      public void target(net.minecraft.core.BlockPos targetPosition)
    • getSourcePosition

      public net.minecraft.core.BlockPos getSourcePosition()
    • getSourceConfig

      public net.minecraft.nbt.CompoundTag getSourceConfig()
    • setSourceConfig

      public void setSourceConfig(net.minecraft.nbt.CompoundTag sourceConfig)
    • getDirection

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

      public net.minecraft.core.BlockPos getTargetPosition()
    • getBulbOffset

      public net.minecraft.world.phys.Vec3 getBulbOffset(net.minecraft.world.level.block.state.BlockState state)
      Overrides:
      getBulbOffset in class LinkWithBulbBlockEntity