Class ClockworkContraption
java.lang.Object
com.simibubi.create.content.contraptions.components.structureMovement.Contraption
com.simibubi.create.content.contraptions.components.structureMovement.bearing.ClockworkContraption
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.simibubi.create.content.contraptions.components.structureMovement.Contraption
Contraption.ContraptionInvWrapper -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected net.minecraft.core.DirectionintFields 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 TypeMethodDescriptionbooleanassemble(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) static org.apache.commons.lang3.tuple.Pair<ClockworkContraption,ClockworkContraption> assembleClockworkAt(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction) booleancanBeStabilized(net.minecraft.core.Direction facing, net.minecraft.core.BlockPos localPos) protected ContraptionTypegetType()protected booleanisAnchoringBlockAt(net.minecraft.core.BlockPos pos) protected booleanmoveBlock(net.minecraft.world.level.Level world, net.minecraft.core.Direction direction, Queue<net.minecraft.core.BlockPos> frontier, Set<net.minecraft.core.BlockPos> visited) move the first block in frontier queuevoidreadNBT(net.minecraft.world.level.Level world, net.minecraft.nbt.CompoundTag tag, boolean spawnData) booleansearchMovedStructure(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction) net.minecraft.nbt.CompoundTagwriteNBT(boolean spawnPacket) Methods inherited from class com.simibubi.create.content.contraptions.components.structureMovement.Contraption
addBlock, addBlocksToWorld, addPassengersToWorld, addToInitialFrontier, 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, handleContraptionFluidPacket, invalidateColliders, isHiddenInPortal, moveGantryPinion, moveGantryShaft, movementAllowed, movePistonHead, movePistonPole, onEntityCreated, onEntityInitialize, onEntityRemoved, removeBlocksFromWorld, setSeatMapping, shouldUpdateAfterMovement, startMoving, stop, tickStorage, toLocalPos
-
Field Details
-
facing
protected net.minecraft.core.Direction facing -
handType
-
offset
public int offset
-
-
Constructor Details
-
ClockworkContraption
public ClockworkContraption()
-
-
Method Details
-
getType
- Specified by:
getTypein classContraption
-
isAnchoringBlockAt
protected boolean isAnchoringBlockAt(net.minecraft.core.BlockPos pos) - Overrides:
isAnchoringBlockAtin classContraption
-
assembleClockworkAt
public static org.apache.commons.lang3.tuple.Pair<ClockworkContraption,ClockworkContraption> assembleClockworkAt(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction) throws AssemblyException - Throws:
AssemblyException
-
assemble
public boolean assemble(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) throws AssemblyException - Specified by:
assemblein classContraption- Throws:
AssemblyException
-
searchMovedStructure
public boolean searchMovedStructure(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction) throws AssemblyException - Overrides:
searchMovedStructurein classContraption- Throws:
AssemblyException
-
moveBlock
protected boolean moveBlock(net.minecraft.world.level.Level world, net.minecraft.core.Direction direction, Queue<net.minecraft.core.BlockPos> frontier, Set<net.minecraft.core.BlockPos> visited) throws AssemblyException Description copied from class:Contraptionmove the first block in frontier queue- Overrides:
moveBlockin classContraption- Throws:
AssemblyException
-
writeNBT
public net.minecraft.nbt.CompoundTag writeNBT(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
-
makeLighter
- Overrides:
makeLighterin classContraption
-