Class TranslatingContraption
java.lang.Object
com.simibubi.create.content.contraptions.components.structureMovement.Contraption
com.simibubi.create.content.contraptions.components.structureMovement.TranslatingContraption
- Direct Known Subclasses:
GantryContraption,PistonContraption,PulleyContraption
-
Nested Class Summary
Nested classes/interfaces inherited from class com.simibubi.create.content.contraptions.components.structureMovement.Contraption
Contraption.ContraptionInvWrapper -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected net.minecraft.core.Directionprotected Set<net.minecraft.core.BlockPos>Fields inherited from class com.simibubi.create.content.contraptions.components.structureMovement.Contraption
actors, anchor, blocks, bounds, deferInvalidate, entity, hasUniversalCreativeCrate, interactors, maybeInstancedTileEntities, presentTileEntities, seatMapping, seats, simplifiedEntityColliders, specialRenderedTileEntities, stabilizedSubContraptions, stalled, storage, superglue, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanBeStabilized(net.minecraft.core.Direction facing, net.minecraft.core.BlockPos localPos) Set<net.minecraft.core.BlockPos>getColliders(net.minecraft.world.level.Level world, net.minecraft.core.Direction movementDirection) voidremoveBlocksFromWorld(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos offset) Methods inherited from class com.simibubi.create.content.contraptions.components.structureMovement.Contraption
addBlock, addBlocksToWorld, addPassengersToWorld, addToInitialFrontier, assemble, capture, containsBlockBreakers, customBlockPlacement, customBlockRemoval, expandBoundsAroundAxis, forEachActor, fromNBT, getActors, getBearingPosOf, getBlocks, getContraptionWorld, getInteractors, getMaxDistSqr, getRadius, getRenderedBlocks, getSeatMapping, getSeatOf, getSeats, getSharedFluidTanks, getSharedFuelInventory, getSharedInventory, getSimplifiedEntityColliders, getSpecialRenderedTEs, getStorageForSpawnPacket, getTileEntityNBT, getType, handleContraptionFluidPacket, invalidateColliders, isAnchoringBlockAt, isHiddenInPortal, makeLighter, moveBlock, moveGantryPinion, moveGantryShaft, movementAllowed, movePistonHead, movePistonPole, onEntityCreated, onEntityInitialize, onEntityRemoved, readNBT, searchMovedStructure, setSeatMapping, shouldUpdateAfterMovement, startMoving, stop, tickStorage, toLocalPos, writeNBT
-
Field Details
-
cachedColliders
-
cachedColliderDirection
protected net.minecraft.core.Direction cachedColliderDirection
-
-
Constructor Details
-
TranslatingContraption
public TranslatingContraption()
-
-
Method Details
-
getColliders
public Set<net.minecraft.core.BlockPos> getColliders(net.minecraft.world.level.Level world, net.minecraft.core.Direction movementDirection) -
removeBlocksFromWorld
public void removeBlocksFromWorld(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos offset) - Overrides:
removeBlocksFromWorldin classContraption
-
canBeStabilized
public boolean canBeStabilized(net.minecraft.core.Direction facing, net.minecraft.core.BlockPos localPos) - Specified by:
canBeStabilizedin classContraption
-