Class CarriageContraption

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

public class CarriageContraption extends Contraption
  • Field Details

    • blazeBurnerConductors

      public Couple<Boolean> blazeBurnerConductors
    • conductorSeats

      public Map<net.minecraft.core.BlockPos,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(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
    • getStorageForSpawnPacket

      protected MountedStorageManager getStorageForSpawnPacket()
      Overrides:
      getStorageForSpawnPacket in class Contraption
    • getType

      protected ContraptionType getType()
      Specified by:
      getType in class Contraption
    • makeLighter

      public ContraptionLighter<?> makeLighter()
      Overrides:
      makeLighter 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()
    • getRenderedBlocks

      public Collection<net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo> getRenderedBlocks()
      Overrides:
      getRenderedBlocks in class Contraption
    • getSpecialRenderedTEs

      public Collection<net.minecraft.world.level.block.entity.BlockEntity> getSpecialRenderedTEs()
      Overrides:
      getSpecialRenderedTEs in class Contraption
    • getSimplifiedEntityColliders

      public Optional<List<net.minecraft.world.phys.AABB>> getSimplifiedEntityColliders()
      Overrides:
      getSimplifiedEntityColliders in class Contraption
    • isHiddenInPortal

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

      public boolean notInPortal()
    • atSeam

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

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

      public net.minecraftforge.items.IItemHandlerModifiable getSharedInventory()
      Overrides:
      getSharedInventory in class Contraption
    • getSharedFluidTanks

      public net.minecraftforge.fluids.capability.IFluidHandler getSharedFluidTanks()
      Overrides:
      getSharedFluidTanks in class Contraption
    • handleContraptionFluidPacket

      public void handleContraptionFluidPacket(net.minecraft.core.BlockPos localPos, net.minecraftforge.fluids.FluidStack containedFluid)
      Overrides:
      handleContraptionFluidPacket in class Contraption
    • tickStorage

      public void tickStorage(AbstractContraptionEntity entity)
      Overrides:
      tickStorage in class Contraption