public class MountedContraption extends Contraption
Contraption.ContraptionInvWrapper| Modifier and Type | Field and Description |
|---|---|
net.minecraft.entity.item.minecart.AbstractMinecartEntity |
connectedCart |
CartAssemblerTileEntity.CartMovementMode |
rotationMode |
actors, anchor, blocks, bounds, entity, fluidInventory, fluidStorage, hasUniversalCreativeCrate, inventory, maybeInstancedTileEntities, presentTileEntities, seatMapping, seats, simplifiedEntityColliders, specialRenderedTileEntities, stabilizedSubContraptions, stalled, storage, superglue, world| Constructor and Description |
|---|
MountedContraption() |
MountedContraption(CartAssemblerTileEntity.CartMovementMode mode) |
| Modifier and Type | Method and Description |
|---|---|
void |
addExtraInventories(net.minecraft.entity.Entity cart) |
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) |
boolean |
canBeStabilized(net.minecraft.util.Direction facing,
net.minecraft.util.math.BlockPos localPos) |
protected org.apache.commons.lang3.tuple.Pair<net.minecraft.world.gen.feature.template.Template.BlockInfo,net.minecraft.tileentity.TileEntity> |
capture(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() |
ContraptionLighter<?> |
makeLighter() |
protected boolean |
movementAllowed(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos) |
void |
readNBT(net.minecraft.world.World world,
net.minecraft.nbt.CompoundNBT nbt,
boolean spawnData) |
protected boolean |
testSecondaryCartAssembler(net.minecraft.world.World world,
net.minecraft.block.BlockState state,
net.minecraft.util.math.BlockPos pos) |
net.minecraft.nbt.CompoundNBT |
writeNBT(boolean spawnPacket) |
addBlock, addBlocksToWorld, addGlue, addPassengersToWorld, expandBoundsAroundAxis, foreachActor, fromNBT, getActors, getBearingPosOf, getBlocks, getContraptionWorld, getMaxDistSqr, getRadius, getSeatMapping, getSeatOf, getSeats, getTileEntityNBT, isAnchoringBlockAt, moveBlock, moveGantryPinion, moveGantryShaft, movePistonHead, movePistonPole, onEntityCreated, onEntityInitialize, onEntityRemoved, onEntityTick, removeBlocksFromWorld, searchMovedStructure, setSeatMapping, shouldUpdateAfterMovement, startMoving, stop, toLocalPos, updateContainedFluidpublic CartAssemblerTileEntity.CartMovementMode rotationMode
public net.minecraft.entity.item.minecart.AbstractMinecartEntity connectedCart
public MountedContraption()
public MountedContraption(CartAssemblerTileEntity.CartMovementMode mode)
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 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)
addToInitialFrontier in class Contraptionprotected org.apache.commons.lang3.tuple.Pair<net.minecraft.world.gen.feature.template.Template.BlockInfo,net.minecraft.tileentity.TileEntity> capture(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
capture in class Contraptionprotected boolean movementAllowed(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
movementAllowed in class Contraptionprotected boolean testSecondaryCartAssembler(net.minecraft.world.World world,
net.minecraft.block.BlockState state,
net.minecraft.util.math.BlockPos pos)
public net.minecraft.nbt.CompoundNBT writeNBT(boolean spawnPacket)
writeNBT in class Contraptionpublic void readNBT(net.minecraft.world.World world,
net.minecraft.nbt.CompoundNBT nbt,
boolean spawnData)
readNBT 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 boolean canBeStabilized(net.minecraft.util.Direction facing,
net.minecraft.util.math.BlockPos localPos)
canBeStabilized in class Contraptionpublic void addExtraInventories(net.minecraft.entity.Entity cart)
addExtraInventories in class Contraptionpublic ContraptionLighter<?> makeLighter()
makeLighter in class Contraption