Class ElevatorContraption


public class ElevatorContraption extends PulleyContraption
  • Field Details

    • column

      protected ElevatorColumn.ColumnCoords column
    • contactYOffset

      protected int contactYOffset
    • arrived

      public boolean arrived
    • namesList

      public List<net.createmod.catnip.data.IntAttached<net.createmod.catnip.data.Couple<String>>> namesList
    • clientYTarget

      public int clientYTarget
    • maxContactY

      public int maxContactY
    • minContactY

      public int minContactY
  • Constructor Details

    • ElevatorContraption

      public ElevatorContraption()
    • ElevatorContraption

      public ElevatorContraption(int initialOffset)
  • Method Details

    • tickStorage

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

      protected void disableActorOnStart(MovementContext context)
      Overrides:
      disableActorOnStart in class Contraption
    • getGlobalColumn

      public ElevatorColumn.ColumnCoords getGlobalColumn()
    • getCurrentTargetY

      public Integer getCurrentTargetY(net.minecraft.world.level.Level level)
    • isTargetUnreachable

      public boolean isTargetUnreachable(int contactY)
    • assemble

      public boolean assemble(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) throws AssemblyException
      Overrides:
      assemble in class PulleyContraption
      Throws:
      AssemblyException
    • 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
    • getContactYOffset

      public int getContactYOffset()
    • broadcastFloorData

      public void broadcastFloorData(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos contactPos)
    • writeNBT

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

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

      public ContraptionType getType()
      Overrides:
      getType in class PulleyContraption
    • setClientYTarget

      public void setClientYTarget(int clientYTarget)
    • syncControlDisplays

      public void syncControlDisplays()
    • setAllControlsToFloor

      public void setAllControlsToFloor(int floorIndex)