public class BearingContraption extends Contraption
Contraption.ContraptionInvWrapper| Modifier and Type | Field and Description |
|---|---|
protected net.minecraft.util.Direction |
facing |
protected int |
sailBlocks |
actors, anchor, blocks, bounds, entity, fluidInventory, fluidStorage, hasUniversalCreativeCrate, inventory, maybeInstancedTileEntities, presentTileEntities, seatMapping, seats, simplifiedEntityColliders, specialRenderedTileEntities, stabilizedSubContraptions, stalled, storage, superglue, world| Constructor and Description |
|---|
BearingContraption() |
BearingContraption(boolean isWindmill,
net.minecraft.util.Direction facing) |
| 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) |
boolean |
assemble(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos) |
boolean |
canBeStabilized(net.minecraft.util.Direction facing,
net.minecraft.util.math.BlockPos localPos) |
net.minecraft.util.Direction |
getFacing() |
int |
getSailBlocks() |
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 tag,
boolean spawnData) |
net.minecraft.nbt.CompoundNBT |
writeNBT(boolean spawnPacket) |
addBlocksToWorld, addExtraInventories, addGlue, addPassengersToWorld, addToInitialFrontier, capture, customBlockPlacement, customBlockRemoval, expandBoundsAroundAxis, foreachActor, fromNBT, getActors, getBearingPosOf, getBlocks, getContraptionWorld, getMaxDistSqr, getRadius, getSeatMapping, getSeatOf, getSeats, getTileEntityNBT, moveBlock, moveGantryPinion, moveGantryShaft, movementAllowed, movePistonHead, movePistonPole, onEntityCreated, onEntityInitialize, onEntityRemoved, onEntityTick, removeBlocksFromWorld, searchMovedStructure, setSeatMapping, shouldUpdateAfterMovement, startMoving, stop, toLocalPos, updateContainedFluidprotected int sailBlocks
protected net.minecraft.util.Direction facing
public BearingContraption()
public BearingContraption(boolean isWindmill,
net.minecraft.util.Direction facing)
public boolean assemble(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
throws AssemblyException
assemble in class ContraptionAssemblyExceptionprotected ContraptionType getType()
getType in class Contraptionprotected boolean isAnchoringBlockAt(net.minecraft.util.math.BlockPos pos)
isAnchoringBlockAt in class Contraptionpublic 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.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 int getSailBlocks()
public net.minecraft.util.Direction getFacing()
public boolean canBeStabilized(net.minecraft.util.Direction facing,
net.minecraft.util.math.BlockPos localPos)
canBeStabilized in class Contraptionpublic ContraptionLighter<?> makeLighter()
makeLighter in class Contraption