Class StationBlockEntity

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

public class StationBlockEntity extends SmartBlockEntity implements TransformableBlockEntity
  • Field Details

    • edgePoint

    • doorControls

      public DoorControlBehaviour doorControls
    • flag

      public net.createmod.catnip.animation.LerpedFloat flag
    • failedCarriageIndex

      protected int failedCarriageIndex
    • lastException

      protected AssemblyException lastException
    • depotBehaviour

      protected DepotBehaviour depotBehaviour
    • computerBehaviour

      public AbstractComputerBehaviour computerBehaviour
    • lastDisassembledTrainName

      public net.minecraft.network.chat.Component lastDisassembledTrainName
    • lastDisassembledMapColorIndex

      public int lastDisassembledMapColorIndex
    • assemblyAreas

      public static net.createmod.catnip.data.WorldAttached<Map<net.minecraft.core.BlockPos,net.minecraft.world.level.levelgen.structure.BoundingBox>> assemblyAreas
  • Constructor Details

    • StationBlockEntity

      public StationBlockEntity(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
    • 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
    • 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
    • getStation

      @Nullable public GlobalStation getStation()
    • lazyTick

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

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

      public boolean trackClicked(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, ITrackBlock track, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos)
    • enterAssemblyMode

      public boolean enterAssemblyMode(@Nullable net.minecraft.server.level.ServerPlayer sender)
    • exitAssemblyMode

      public boolean exitAssemblyMode()
    • tryDisassembleTrain

      public boolean tryDisassembleTrain(@Nullable net.minecraft.server.level.ServerPlayer sender)
    • isAssembling

      public boolean isAssembling()
    • tryEnterAssemblyMode

      public boolean tryEnterAssemblyMode()
    • dropSchedule

      public void dropSchedule(@Nullable net.minecraft.server.level.ServerPlayer sender, @Nullable Train train)
    • updateMapColor

      public void updateMapColor(int color)
    • refreshAssemblyInfo

      public void refreshAssemblyInfo()
    • updateName

      public boolean updateName(String name)
    • isValidBogeyOffset

      public boolean isValidBogeyOffset(int i)
    • getAssemblyDirection

      public net.minecraft.core.Direction getAssemblyDirection()
    • 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
    • assemble

      public void assemble(UUID playerUUID)
    • cancelAssembly

      public void cancelAssembly()
    • getRenderBoundingBox

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

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

      public net.minecraft.world.item.ItemStack getAutoSchedule()
    • invalidate

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

      public boolean resolveFlagAngle()
    • transform

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

      public void attachPackagePort(PackagePortBlockEntity ppbe)
    • removePackagePort

      public void removePackagePort(PackagePortBlockEntity ppbe)