Class PulleyContraption
java.lang.Object
com.simibubi.create.content.contraptions.Contraption
com.simibubi.create.content.contraptions.TranslatingContraption
com.simibubi.create.content.contraptions.pulley.PulleyContraption
- Direct Known Subclasses:
ElevatorContraption
-
Field Summary
Fields 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) intgetType()protected booleanisAnchoringBlockAt(net.minecraft.core.BlockPos pos) voidreadNBT(net.minecraft.world.level.Level world, net.minecraft.nbt.CompoundTag nbt, boolean spawnData) net.minecraft.nbt.CompoundTagwriteNBT(net.minecraft.core.HolderLookup.Provider registries, boolean spawnPacket) Methods 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, 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, invalidateClientContraptionChildren, invalidateClientContraptionStructure, invalidateColliders, isActorTypeDisabled, isHiddenInPortal, moveBlock, moveGantryPinion, moveGantryShaft, movementAllowed, movePistonHead, movePistonPole, onEntityCreated, onEntityInitialize, onEntityRemoved, resetClientContraption, searchMovedStructure, setActorsActive, setSeatMapping, shouldUpdateAfterMovement, startMoving, stop, tickStorage, toLocalPos, translateMultiblockControllers, writeStorage
-
Constructor Details
-
PulleyContraption
public PulleyContraption() -
PulleyContraption
public PulleyContraption(int initialOffset)
-
-
Method Details
-
getType
- Specified by:
getTypein classContraption
-
assemble
public boolean assemble(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) throws AssemblyException - Specified by:
assemblein classContraption- Throws:
AssemblyException
-
isAnchoringBlockAt
protected boolean isAnchoringBlockAt(net.minecraft.core.BlockPos pos) - Overrides:
isAnchoringBlockAtin classContraption
-
writeNBT
public net.minecraft.nbt.CompoundTag writeNBT(net.minecraft.core.HolderLookup.Provider registries, boolean spawnPacket) - Overrides:
writeNBTin classContraption
-
readNBT
public void readNBT(net.minecraft.world.level.Level world, net.minecraft.nbt.CompoundTag nbt, boolean spawnData) - Overrides:
readNBTin classContraption
-
getInitialOffset
public int getInitialOffset()
-