public class ClockworkContraption extends Contraption
| Modifier and Type | Class and Description |
|---|---|
static class |
ClockworkContraption.HandType |
Contraption.ContraptionInvWrapper| Modifier and Type | Field and Description |
|---|---|
protected net.minecraft.util.Direction |
facing |
ClockworkContraption.HandType |
handType |
int |
offset |
actors, anchor, blocks, bounds, entity, fluidInventory, fluidStorage, hasUniversalCreativeCrate, interactors, inventory, maybeInstancedTileEntities, presentTileEntities, seatMapping, seats, simplifiedEntityColliders, specialRenderedTileEntities, stabilizedSubContraptions, stalled, storage, superglue, world| Constructor and Description |
|---|
ClockworkContraption() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
assemble(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos) |
static org.apache.commons.lang3.tuple.Pair<ClockworkContraption,ClockworkContraption> |
assembleClockworkAt(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction direction) |
boolean |
canBeStabilized(net.minecraft.util.Direction facing,
net.minecraft.util.math.BlockPos localPos) |
protected ContraptionType |
getType() |
protected boolean |
isAnchoringBlockAt(net.minecraft.util.math.BlockPos pos) |
ContraptionLighter<?> |
makeLighter() |
protected boolean |
moveBlock(net.minecraft.world.World world,
net.minecraft.util.Direction direction,
java.util.Queue<net.minecraft.util.math.BlockPos> frontier,
java.util.Set<net.minecraft.util.math.BlockPos> visited)
move the first block in frontier queue
|
void |
readNBT(net.minecraft.world.World world,
net.minecraft.nbt.CompoundNBT tag,
boolean spawnData) |
boolean |
searchMovedStructure(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction direction) |
net.minecraft.nbt.CompoundNBT |
writeNBT(boolean spawnPacket) |
addBlock, addBlocksToWorld, addExtraInventories, addGlue, addPassengersToWorld, addToInitialFrontier, capture, customBlockPlacement, customBlockRemoval, expandBoundsAroundAxis, foreachActor, fromNBT, getActors, getBearingPosOf, getBlocks, getContraptionWorld, getInteractors, getMaxDistSqr, getRadius, getSeatMapping, getSeatOf, getSeats, getTileEntityNBT, invalidateColliders, moveGantryPinion, moveGantryShaft, movementAllowed, movePistonHead, movePistonPole, onEntityCreated, onEntityInitialize, onEntityRemoved, onEntityTick, removeBlocksFromWorld, setSeatMapping, shouldUpdateAfterMovement, startMoving, stop, toLocalPos, updateContainedFluidprotected net.minecraft.util.Direction facing
public ClockworkContraption.HandType handType
public int offset
protected ContraptionType getType()
getType in class Contraptionprotected boolean isAnchoringBlockAt(net.minecraft.util.math.BlockPos pos)
isAnchoringBlockAt in class Contraptionpublic static org.apache.commons.lang3.tuple.Pair<ClockworkContraption,ClockworkContraption> assembleClockworkAt(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.util.Direction direction) throws AssemblyException
AssemblyExceptionpublic boolean assemble(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
throws AssemblyException
assemble in class ContraptionAssemblyExceptionpublic boolean searchMovedStructure(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction direction)
throws AssemblyException
searchMovedStructure in class ContraptionAssemblyExceptionprotected boolean moveBlock(net.minecraft.world.World world,
net.minecraft.util.Direction direction,
java.util.Queue<net.minecraft.util.math.BlockPos> frontier,
java.util.Set<net.minecraft.util.math.BlockPos> visited)
throws AssemblyException
ContraptionmoveBlock in class ContraptionAssemblyExceptionpublic net.minecraft.nbt.CompoundNBT writeNBT(boolean spawnPacket)
writeNBT in class Contraptionpublic void readNBT(net.minecraft.world.World world,
net.minecraft.nbt.CompoundNBT tag,
boolean spawnData)
readNBT in class Contraptionpublic boolean canBeStabilized(net.minecraft.util.Direction facing,
net.minecraft.util.math.BlockPos localPos)
canBeStabilized in class Contraptionpublic ContraptionLighter<?> makeLighter()
makeLighter in class Contraption