Class ElevatorContraption
java.lang.Object
com.simibubi.create.content.contraptions.Contraption
com.simibubi.create.content.contraptions.TranslatingContraption
com.simibubi.create.content.contraptions.pulley.PulleyContraption
com.simibubi.create.content.contraptions.elevator.ElevatorContraption
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanintprotected ElevatorColumn.ColumnCoordsprotected intintintFields inherited from class com.simibubi.create.content.contraptions.TranslatingContraption
cachedColliderDirection, cachedCollidersFields inherited from class com.simibubi.create.content.contraptions.Contraption
actors, anchor, blocks, bounds, capturedMultiblocks, collisionLevel, disabledActors, disassembled, entity, hasUniversalCreativeCrate, interactors, isLegacy, seatMapping, seats, simplifiedEntityColliders, stabilizedSubContraptions, stalled, storage, superglue, updateTags -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanassemble(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) voidbroadcastFloorData(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos contactPos) 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) protected voiddisableActorOnStart(MovementContext context) intgetCurrentTargetY(net.minecraft.world.level.Level level) getType()booleanisTargetUnreachable(int contactY) voidreadNBT(net.minecraft.world.level.Level world, net.minecraft.nbt.CompoundTag nbt, boolean spawnData) voidsetAllControlsToFloor(int floorIndex) voidsetClientYTarget(int clientYTarget) voidvoidtickStorage(AbstractContraptionEntity entity) net.minecraft.nbt.CompoundTagwriteNBT(net.minecraft.core.HolderLookup.Provider registries, boolean spawnPacket) Methods inherited from class com.simibubi.create.content.contraptions.pulley.PulleyContraption
getInitialOffset, isAnchoringBlockAtMethods inherited from class com.simibubi.create.content.contraptions.TranslatingContraption
canBeStabilized, createColliders, getOrCreateColliders, removeBlocksFromWorldMethods inherited from class com.simibubi.create.content.contraptions.Contraption
addBlock, addBlocksToWorld, addPassengersToWorld, addToInitialFrontier, captureMultiblock, containsBlockBreakers, createClientContraption, customBlockPlacement, customBlockRemoval, expandBoundsAroundAxis, forEachActor, fromNBT, getActorAt, getActors, getBearingPosOf, getBlockEntityClientSide, getBlockEntityNBT, getBlocks, getContraptionWorld, getDisabledActors, getInteractors, getIsLegacy, getOrCreateClientContraptionLazy, getRadius, getSeatMapping, getSeatOf, getSeats, getSimplifiedEntityColliders, getStorage, invalidateClientContraptionChildren, invalidateClientContraptionStructure, invalidateColliders, isActorTypeDisabled, isHiddenInPortal, moveBlock, moveGantryPinion, moveGantryShaft, movementAllowed, movePistonHead, movePistonPole, onEntityCreated, onEntityInitialize, onEntityRemoved, resetClientContraption, searchMovedStructure, setActorsActive, setSeatMapping, shouldUpdateAfterMovement, startMoving, stop, toLocalPos, translateMultiblockControllers, writeStorage
-
Field Details
-
column
-
contactYOffset
protected int contactYOffset -
arrived
public boolean arrived -
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
- Overrides:
tickStoragein classContraption
-
disableActorOnStart
- Overrides:
disableActorOnStartin classContraption
-
getGlobalColumn
-
getCurrentTargetY
-
isTargetUnreachable
public boolean isTargetUnreachable(int contactY) -
assemble
public boolean assemble(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) throws AssemblyException - Overrides:
assemblein classPulleyContraption- 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:
capturein classContraption
-
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:
writeNBTin classPulleyContraption
-
readNBT
public void readNBT(net.minecraft.world.level.Level world, net.minecraft.nbt.CompoundTag nbt, boolean spawnData) - Overrides:
readNBTin classPulleyContraption
-
getType
- Overrides:
getTypein classPulleyContraption
-
setClientYTarget
public void setClientYTarget(int clientYTarget) -
syncControlDisplays
public void syncControlDisplays() -
setAllControlsToFloor
public void setAllControlsToFloor(int floorIndex)
-