Class CarriageContraption

java.lang.Object
com.simibubi.create.content.contraptions.Contraption
com.simibubi.create.content.trains.entity.CarriageContraption

public class CarriageContraption extends Contraption
  • Field Details

    • blockConductors

      public net.createmod.catnip.data.Couple<Boolean> blockConductors
    • conductorSeats

      public Map<net.minecraft.core.BlockPos,net.createmod.catnip.data.Couple<Boolean>> conductorSeats
    • soundQueue

      public ArrivalSoundQueue soundQueue
    • storageProxy

      protected MountedStorageManager storageProxy
    • portalCutoffMin

      public int portalCutoffMin
    • portalCutoffMax

      public int portalCutoffMax
  • Constructor Details

    • CarriageContraption

      public CarriageContraption()
    • CarriageContraption

      public CarriageContraption(net.minecraft.core.Direction assemblyDirection)
  • Method Details

    • setSoundQueueOffset

      public void setSoundQueueOffset(int offset)
    • assemble

      public boolean assemble(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) throws AssemblyException
      Specified by:
      assemble in class Contraption
      Throws:
      AssemblyException
    • inControl

      public boolean inControl(net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction)
    • swapStorageAfterAssembly

      public void swapStorageAfterAssembly(CarriageContraptionEntity cce)
    • returnStorageForDisassembly

      public void returnStorageForDisassembly(MountedStorageManager storage)
    • isAnchoringBlockAt

      protected boolean isAnchoringBlockAt(net.minecraft.core.BlockPos pos)
      Overrides:
      isAnchoringBlockAt in class Contraption
    • capture

      protected org.apache.commons.lang3.tuple.Pair<net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo,net.minecraft.world.level.block.entity.BlockEntity> capture(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos)
      Overrides:
      capture in class Contraption
    • writeNBT

      public net.minecraft.nbt.CompoundTag writeNBT(net.minecraft.core.HolderLookup.Provider registries, boolean spawnPacket)
      Overrides:
      writeNBT in class Contraption
    • readNBT

      public void readNBT(net.minecraft.world.level.Level world, net.minecraft.nbt.CompoundTag nbt, boolean spawnData)
      Overrides:
      readNBT in class Contraption
    • canBeStabilized

      public boolean canBeStabilized(net.minecraft.core.Direction facing, net.minecraft.core.BlockPos localPos)
      Specified by:
      canBeStabilized in class Contraption
    • getType

      public ContraptionType getType()
      Specified by:
      getType in class Contraption
    • getAssemblyDirection

      public net.minecraft.core.Direction getAssemblyDirection()
    • hasForwardControls

      public boolean hasForwardControls()
    • hasBackwardControls

      public boolean hasBackwardControls()
    • getSecondBogeyPos

      public net.minecraft.core.BlockPos getSecondBogeyPos()
    • getSimplifiedEntityColliders

      @Nullable public @Nullable CollisionList getSimplifiedEntityColliders()
      Overrides:
      getSimplifiedEntityColliders in class Contraption
    • isHiddenInPortal

      public boolean isHiddenInPortal(net.minecraft.core.BlockPos localPos)
      Overrides:
      isHiddenInPortal in class Contraption
    • isHiddenInPortal

      public boolean isHiddenInPortal(int posAlongMovementAxis)
    • notInPortal

      public boolean notInPortal()
    • atSeam

      public boolean atSeam(net.minecraft.core.BlockPos localPos)
    • withinVisible

      public boolean withinVisible(net.minecraft.core.BlockPos localPos)
    • atSeam

      public boolean atSeam(int posAlongMovementAxis)
    • withinVisible

      public boolean withinVisible(int posAlongMovementAxis)
    • getStorage

      public MountedStorageManager getStorage()
      Overrides:
      getStorage in class Contraption
    • writeStorage

      public void writeStorage(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider registries, boolean spawnPacket)
      Overrides:
      writeStorage in class Contraption
    • createClientContraption

      protected ClientContraption createClientContraption()
      Description copied from class: Contraption
      Create a new ClientContraption instance. This will only be called once, when the contraption first has its animation processed by either the render thread or a flywheel executor thread.

      Most contraptions will not need to implement this.

      Overrides:
      createClientContraption in class Contraption
      Returns:
      A new ClientContraption instance.