Class TranslatingContraption
java.lang.Object
com.simibubi.create.content.contraptions.Contraption
com.simibubi.create.content.contraptions.TranslatingContraption
- Direct Known Subclasses:
GantryContraption,PistonContraption,PulleyContraption
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected net.minecraft.core.Directionprotected Set<net.minecraft.core.BlockPos> Fields 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 TypeMethodDescriptionbooleancanBeStabilized(net.minecraft.core.Direction facing, net.minecraft.core.BlockPos localPos) Set<net.minecraft.core.BlockPos> createColliders(net.minecraft.world.level.Level world, net.minecraft.core.Direction movementDirection) Set<net.minecraft.core.BlockPos> getOrCreateColliders(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.Contraption
addBlock, addBlocksToWorld, addPassengersToWorld, addToInitialFrontier, assemble, capture, captureMultiblock, containsBlockBreakers, createClientContraption, customBlockPlacement, customBlockRemoval, disableActorOnStart, expandBoundsAroundAxis, forEachActor, fromNBT, getActorAt, getActors, getBearingPosOf, getBlockEntityClientSide, getBlockEntityNBT, getBlocks, getContraptionWorld, getDisabledActors, getInteractors, getIsLegacy, getOrCreateClientContraptionLazy, getRadius, getSeatMapping, getSeatOf, getSeats, getSimplifiedEntityColliders, getStorage, getType, invalidateClientContraptionChildren, invalidateClientContraptionStructure, invalidateColliders, isActorTypeDisabled, isAnchoringBlockAt, isHiddenInPortal, moveBlock, moveGantryPinion, moveGantryShaft, movementAllowed, movePistonHead, movePistonPole, onEntityCreated, onEntityInitialize, onEntityRemoved, readNBT, resetClientContraption, searchMovedStructure, setActorsActive, setSeatMapping, shouldUpdateAfterMovement, startMoving, stop, tickStorage, toLocalPos, translateMultiblockControllers, writeNBT, writeStorage
-
Field Details
-
cachedColliders
-
cachedColliderDirection
protected net.minecraft.core.Direction cachedColliderDirection
-
-
Constructor Details
-
TranslatingContraption
public TranslatingContraption()
-
-
Method Details
-
getOrCreateColliders
public Set<net.minecraft.core.BlockPos> getOrCreateColliders(net.minecraft.world.level.Level world, net.minecraft.core.Direction movementDirection) -
createColliders
public Set<net.minecraft.core.BlockPos> createColliders(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
-