Class TrackBlockEntity

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

public class TrackBlockEntity extends SmartBlockEntity implements TransformableBlockEntity, IMergeableBE
  • Field Details

    • boundLocation

      public net.createmod.catnip.data.Pair<net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level>,net.minecraft.core.BlockPos> boundLocation
    • tilt

      public TrackBlockEntityTilt tilt
  • Constructor Details

    • TrackBlockEntity

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

    • getConnections

      public Map<net.minecraft.core.BlockPos,BezierConnection> getConnections()
    • initialize

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

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

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

      public void validateConnections()
    • addConnection

      public void addConnection(BezierConnection connection)
    • removeConnection

      public void removeConnection(net.minecraft.core.BlockPos target)
    • removeInboundConnections

      public void removeInboundConnections(boolean dropAndDiscard)
    • bind

      public void bind(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> boundDimension, net.minecraft.core.BlockPos boundLocation)
    • isTilted

      public boolean isTilted()
    • 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 SmartBlockEntity
    • 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 SmartBlockEntity
    • getRenderBoundingBox

      public net.minecraft.world.phys.AABB getRenderBoundingBox()
      Overrides:
      getRenderBoundingBox in class CachedRenderBBBlockEntity
    • addBehaviours

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

      public void accept(net.minecraft.world.level.block.entity.BlockEntity other)
      Specified by:
      accept in interface IMergeableBE
    • hasInteractableConnections

      public boolean hasInteractableConnections()
    • transform

      public void transform(net.minecraft.world.level.block.entity.BlockEntity be, StructureTransform transform)
      Specified by:
      transform in interface TransformableBlockEntity
    • invalidate

      public void invalidate()
      Description copied from class: SmartBlockEntity
      Block destroyed or Chunk unloaded. Usually invalidates capabilities
      Overrides:
      invalidate 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
    • getModelData

      public net.neoforged.neoforge.client.model.data.ModelData getModelData()
      Specified by:
      getModelData in interface net.neoforged.neoforge.common.extensions.IBlockEntityExtension
    • manageFakeTracksAlong

      public void manageFakeTracksAlong(BezierConnection bc, boolean remove)