public class PistonContraption extends TranslatingContraption
Contraption.ContraptionInvWrapper| Modifier and Type | Field and Description |
|---|---|
protected int |
extensionLength |
protected int |
initialExtensionProgress |
protected net.minecraft.util.Direction |
orientation |
cachedColliderDirection, cachedCollidersactors, anchor, blocks, bounds, entity, fluidInventory, fluidStorage, hasUniversalCreativeCrate, inventory, maybeInstancedTileEntities, presentTileEntities, seatMapping, seats, simplifiedEntityColliders, specialRenderedTileEntities, stabilizedSubContraptions, stalled, storage, superglue, world| Constructor and Description |
|---|
PistonContraption() |
PistonContraption(net.minecraft.util.Direction direction,
boolean retract) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBlock(net.minecraft.util.math.BlockPos pos,
org.apache.commons.lang3.tuple.Pair<net.minecraft.world.gen.feature.template.Template.BlockInfo,net.minecraft.tileentity.TileEntity> capture) |
protected boolean |
addToInitialFrontier(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction direction,
java.util.Queue<net.minecraft.util.math.BlockPos> frontier) |
boolean |
assemble(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos) |
protected boolean |
customBlockPlacement(net.minecraft.world.IWorld world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state) |
protected boolean |
customBlockRemoval(net.minecraft.world.IWorld world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state) |
protected ContraptionType |
getType() |
protected boolean |
isAnchoringBlockAt(net.minecraft.util.math.BlockPos pos) |
ContraptionLighter<?> |
makeLighter() |
void |
readNBT(net.minecraft.world.World world,
net.minecraft.nbt.CompoundNBT nbt,
boolean spawnData) |
net.minecraft.util.math.BlockPos |
toLocalPos(net.minecraft.util.math.BlockPos globalPos) |
net.minecraft.nbt.CompoundNBT |
writeNBT(boolean spawnPacket) |
canBeStabilized, getColliders, removeBlocksFromWorldaddBlocksToWorld, addExtraInventories, addGlue, addPassengersToWorld, capture, expandBoundsAroundAxis, foreachActor, fromNBT, getActors, getBearingPosOf, getBlocks, getContraptionWorld, getMaxDistSqr, getRadius, getSeatMapping, getSeatOf, getSeats, getTileEntityNBT, moveBlock, moveGantryPinion, moveGantryShaft, movementAllowed, movePistonHead, movePistonPole, onEntityCreated, onEntityInitialize, onEntityRemoved, onEntityTick, searchMovedStructure, setSeatMapping, shouldUpdateAfterMovement, startMoving, stop, updateContainedFluidprotected int extensionLength
protected int initialExtensionProgress
protected net.minecraft.util.Direction orientation
public PistonContraption()
public PistonContraption(net.minecraft.util.Direction direction,
boolean retract)
protected ContraptionType getType()
getType in class Contraptionpublic boolean assemble(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
throws AssemblyException
assemble in class ContraptionAssemblyExceptionprotected boolean isAnchoringBlockAt(net.minecraft.util.math.BlockPos pos)
isAnchoringBlockAt in class Contraptionprotected boolean addToInitialFrontier(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction direction,
java.util.Queue<net.minecraft.util.math.BlockPos> frontier)
throws AssemblyException
addToInitialFrontier in class ContraptionAssemblyExceptionpublic void addBlock(net.minecraft.util.math.BlockPos pos,
org.apache.commons.lang3.tuple.Pair<net.minecraft.world.gen.feature.template.Template.BlockInfo,net.minecraft.tileentity.TileEntity> capture)
addBlock in class Contraptionpublic net.minecraft.util.math.BlockPos toLocalPos(net.minecraft.util.math.BlockPos globalPos)
toLocalPos in class Contraptionprotected boolean customBlockPlacement(net.minecraft.world.IWorld world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state)
customBlockPlacement in class Contraptionprotected boolean customBlockRemoval(net.minecraft.world.IWorld world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state)
customBlockRemoval in class Contraptionpublic void readNBT(net.minecraft.world.World world,
net.minecraft.nbt.CompoundNBT nbt,
boolean spawnData)
readNBT in class Contraptionpublic net.minecraft.nbt.CompoundNBT writeNBT(boolean spawnPacket)
writeNBT in class Contraptionpublic ContraptionLighter<?> makeLighter()
makeLighter in class Contraption