Class CarriageContraption
java.lang.Object
com.simibubi.create.content.contraptions.components.structureMovement.Contraption
com.simibubi.create.content.logistics.trains.entity.CarriageContraption
-
Nested Class Summary
Nested classes/interfaces inherited from class com.simibubi.create.content.contraptions.components.structureMovement.Contraption
Contraption.ContraptionInvWrapper -
Field Summary
FieldsFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanassemble(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) booleanatSeam(net.minecraft.core.BlockPos localPos) 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) net.minecraft.core.DirectionCollection<net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo>net.minecraft.core.BlockPosnet.minecraftforge.fluids.capability.IFluidHandlernet.minecraftforge.items.IItemHandlerModifiableCollection<net.minecraft.world.level.block.entity.BlockEntity>protected MountedStorageManagerprotected ContraptionTypegetType()voidhandleContraptionFluidPacket(net.minecraft.core.BlockPos localPos, net.minecraftforge.fluids.FluidStack containedFluid) booleanbooleanbooleaninControl(net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction) protected booleanisAnchoringBlockAt(net.minecraft.core.BlockPos pos) booleanisHiddenInPortal(net.minecraft.core.BlockPos localPos) booleanvoidreadNBT(net.minecraft.world.level.Level world, net.minecraft.nbt.CompoundTag nbt, boolean spawnData) voidvoidsetSoundQueueOffset(int offset) voidvoidtickStorage(AbstractContraptionEntity entity) booleanwithinVisible(net.minecraft.core.BlockPos localPos) net.minecraft.nbt.CompoundTagwriteNBT(boolean spawnPacket) Methods inherited from class com.simibubi.create.content.contraptions.components.structureMovement.Contraption
addBlock, addBlocksToWorld, addPassengersToWorld, addToInitialFrontier, containsBlockBreakers, customBlockPlacement, customBlockRemoval, expandBoundsAroundAxis, forEachActor, fromNBT, getActors, getBearingPosOf, getBlocks, getContraptionWorld, getInteractors, getMaxDistSqr, getRadius, getSeatMapping, getSeatOf, getSeats, getSharedFuelInventory, getTileEntityNBT, invalidateColliders, moveBlock, moveGantryPinion, moveGantryShaft, movementAllowed, movePistonHead, movePistonPole, onEntityCreated, onEntityInitialize, onEntityRemoved, removeBlocksFromWorld, searchMovedStructure, setSeatMapping, shouldUpdateAfterMovement, startMoving, stop, toLocalPos
-
Field Details
-
blazeBurnerConductors
-
conductorSeats
-
soundQueue
-
storageProxy
-
portalCutoffMin
public int portalCutoffMin -
portalCutoffMax
public int portalCutoffMax
-
-
Constructor Details
-
CarriageContraption
public CarriageContraption() -
CarriageContraption
public CarriageContraption(net.minecraft.core.Direction assemblyDirection)
-
-
Method Details
-
setSoundQueueOffset
public void setSoundQueueOffset(int offset) -
assemble
public boolean assemble(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) throws AssemblyException - Specified by:
assemblein classContraption- Throws:
AssemblyException
-
inControl
public boolean inControl(net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction) -
swapStorageAfterAssembly
-
returnStorageForDisassembly
-
isAnchoringBlockAt
protected boolean isAnchoringBlockAt(net.minecraft.core.BlockPos pos) - Overrides:
isAnchoringBlockAtin 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
-
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
-
canBeStabilized
public boolean canBeStabilized(net.minecraft.core.Direction facing, net.minecraft.core.BlockPos localPos) - Specified by:
canBeStabilizedin classContraption
-
getStorageForSpawnPacket
- Overrides:
getStorageForSpawnPacketin classContraption
-
getType
- Specified by:
getTypein classContraption
-
makeLighter
- Overrides:
makeLighterin classContraption
-
getAssemblyDirection
public net.minecraft.core.Direction getAssemblyDirection() -
hasForwardControls
public boolean hasForwardControls() -
hasBackwardControls
public boolean hasBackwardControls() -
getSecondBogeyPos
public net.minecraft.core.BlockPos getSecondBogeyPos() -
getRenderedBlocks
public Collection<net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo> getRenderedBlocks()- Overrides:
getRenderedBlocksin classContraption
-
getSpecialRenderedTEs
- Overrides:
getSpecialRenderedTEsin classContraption
-
getSimplifiedEntityColliders
- Overrides:
getSimplifiedEntityCollidersin classContraption
-
isHiddenInPortal
public boolean isHiddenInPortal(net.minecraft.core.BlockPos localPos) - Overrides:
isHiddenInPortalin classContraption
-
notInPortal
public boolean notInPortal() -
atSeam
public boolean atSeam(net.minecraft.core.BlockPos localPos) -
withinVisible
public boolean withinVisible(net.minecraft.core.BlockPos localPos) -
handleContraptionFluidPacket
public void handleContraptionFluidPacket(net.minecraft.core.BlockPos localPos, net.minecraftforge.fluids.FluidStack containedFluid) - Overrides:
handleContraptionFluidPacketin classContraption
-
tickStorage
- Overrides:
tickStoragein classContraption
-