Class StabilizedContraption
java.lang.Object
com.simibubi.create.content.contraptions.Contraption
com.simibubi.create.content.contraptions.bearing.StabilizedContraption
-
Field Summary
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 TypeMethodDescriptionbooleanassemble(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) booleancanBeStabilized(net.minecraft.core.Direction facing, net.minecraft.core.BlockPos localPos) net.minecraft.core.DirectiongetType()protected booleanisAnchoringBlockAt(net.minecraft.core.BlockPos pos) voidreadNBT(net.minecraft.world.level.Level world, net.minecraft.nbt.CompoundTag tag, boolean spawnData) net.minecraft.nbt.CompoundTagwriteNBT(net.minecraft.core.HolderLookup.Provider registries, boolean spawnPacket) Methods 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, removeBlocksFromWorld, resetClientContraption, searchMovedStructure, setActorsActive, setSeatMapping, shouldUpdateAfterMovement, startMoving, stop, tickStorage, toLocalPos, translateMultiblockControllers, writeStorage
-
Constructor Details
-
StabilizedContraption
public StabilizedContraption() -
StabilizedContraption
public StabilizedContraption(net.minecraft.core.Direction facing)
-
-
Method Details
-
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
-
getType
- Specified by:
getTypein 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 tag, boolean spawnData) - Overrides:
readNBTin classContraption
-
canBeStabilized
public boolean canBeStabilized(net.minecraft.core.Direction facing, net.minecraft.core.BlockPos localPos) - Specified by:
canBeStabilizedin classContraption
-
getFacing
public net.minecraft.core.Direction getFacing()
-