Class MountedContraption
java.lang.Object
com.simibubi.create.content.contraptions.components.structureMovement.Contraption
com.simibubi.create.content.contraptions.components.structureMovement.mounted.MountedContraption
-
Nested Class Summary
Nested classes/interfaces inherited from class com.simibubi.create.content.contraptions.components.structureMovement.Contraption
Contraption.ContraptionInvWrapper -
Field Summary
FieldsModifier and TypeFieldDescriptionnet.minecraft.world.entity.vehicle.AbstractMinecartFields 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
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExtraInventories(net.minecraft.world.entity.Entity cart) protected booleanaddToInitialFrontier(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction, Queue<net.minecraft.core.BlockPos> frontier) booleanassemble(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) booleancanBeStabilized(net.minecraft.core.Direction facing, net.minecraft.core.BlockPos localPos) protected org.apache.commons.lang3.tuple.Pair<net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo,net.minecraft.world.level.block.entity.BlockEntity> capture(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) protected booleancustomBlockPlacement(net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) protected booleancustomBlockRemoval(net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) protected ContraptionTypegetType()protected booleanmovementAllowed(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) voidreadNBT(net.minecraft.world.level.Level world, net.minecraft.nbt.CompoundTag nbt, boolean spawnData) protected booleantestSecondaryCartAssembler(net.minecraft.world.level.Level world, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos) net.minecraft.nbt.CompoundTagwriteNBT(boolean spawnPacket) Methods inherited from class com.simibubi.create.content.contraptions.components.structureMovement.Contraption
addBlock, addBlocksToWorld, addPassengersToWorld, containsBlockBreakers, expandBoundsAroundAxis, forEachActor, fromNBT, getActors, getBearingPosOf, getBlocks, getContraptionWorld, getInteractors, getMaxDistSqr, getRadius, getRenderedBlocks, getSeatMapping, getSeatOf, getSeats, getSharedFluidTanks, getSharedFuelInventory, getSharedInventory, getSimplifiedEntityColliders, getSpecialRenderedTEs, getStorageForSpawnPacket, getTileEntityNBT, handleContraptionFluidPacket, invalidateColliders, isAnchoringBlockAt, isHiddenInPortal, moveBlock, moveGantryPinion, moveGantryShaft, movePistonHead, movePistonPole, onEntityCreated, onEntityInitialize, onEntityRemoved, removeBlocksFromWorld, searchMovedStructure, setSeatMapping, shouldUpdateAfterMovement, startMoving, stop, tickStorage, toLocalPos
-
Field Details
-
rotationMode
-
connectedCart
public net.minecraft.world.entity.vehicle.AbstractMinecart connectedCart
-
-
Constructor Details
-
MountedContraption
public MountedContraption() -
MountedContraption
-
-
Method Details
-
getType
- Specified by:
getTypein classContraption
-
assemble
public boolean assemble(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) throws AssemblyException - Specified by:
assemblein classContraption- Throws:
AssemblyException
-
addToInitialFrontier
protected boolean addToInitialFrontier(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction, Queue<net.minecraft.core.BlockPos> frontier) - Overrides:
addToInitialFrontierin classContraption
-
capture
protected org.apache.commons.lang3.tuple.Pair<net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo,net.minecraft.world.level.block.entity.BlockEntity> capture(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) - Overrides:
capturein classContraption
-
movementAllowed
protected boolean movementAllowed(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) - Overrides:
movementAllowedin classContraption
-
testSecondaryCartAssembler
protected boolean testSecondaryCartAssembler(net.minecraft.world.level.Level world, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos) -
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 nbt, boolean spawnData) - Overrides:
readNBTin classContraption
-
customBlockPlacement
protected boolean customBlockPlacement(net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) - Overrides:
customBlockPlacementin classContraption
-
customBlockRemoval
protected boolean customBlockRemoval(net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) - Overrides:
customBlockRemovalin classContraption
-
canBeStabilized
public boolean canBeStabilized(net.minecraft.core.Direction facing, net.minecraft.core.BlockPos localPos) - Specified by:
canBeStabilizedin classContraption
-
addExtraInventories
public void addExtraInventories(net.minecraft.world.entity.Entity cart) -
makeLighter
- Overrides:
makeLighterin classContraption
-