Class CarriageContraption
java.lang.Object
com.simibubi.create.content.contraptions.Contraption
com.simibubi.create.content.trains.entity.CarriageContraption
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionnet.createmod.catnip.data.Couple<Boolean> intintprotected MountedStorageManagerFields inherited from class com.simibubi.create.content.contraptions.Contraption
actors, anchor, blocks, bounds, capturedMultiblocks, collisionLevel, disabledActors, disassembled, entity, hasUniversalCreativeCrate, interactors, isLegacy, seatMapping, seats, simplifiedEntityColliders, stabilizedSubContraptions, stalled, storage, superglue, updateTags -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanassemble(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) booleanatSeam(int posAlongMovementAxis) 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) protected ClientContraptionCreate a newClientContraptioninstance.net.minecraft.core.Directionnet.minecraft.core.BlockPos@Nullable CollisionListgetType()booleanbooleanbooleaninControl(net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction) protected booleanisAnchoringBlockAt(net.minecraft.core.BlockPos pos) booleanisHiddenInPortal(int posAlongMovementAxis) booleanisHiddenInPortal(net.minecraft.core.BlockPos localPos) booleanvoidreadNBT(net.minecraft.world.level.Level world, net.minecraft.nbt.CompoundTag nbt, boolean spawnData) voidvoidsetSoundQueueOffset(int offset) voidbooleanwithinVisible(int posAlongMovementAxis) booleanwithinVisible(net.minecraft.core.BlockPos localPos) net.minecraft.nbt.CompoundTagwriteNBT(net.minecraft.core.HolderLookup.Provider registries, boolean spawnPacket) voidwriteStorage(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider registries, boolean spawnPacket) Methods inherited from class com.simibubi.create.content.contraptions.Contraption
addBlock, addBlocksToWorld, addPassengersToWorld, addToInitialFrontier, captureMultiblock, containsBlockBreakers, customBlockPlacement, customBlockRemoval, disableActorOnStart, expandBoundsAroundAxis, forEachActor, fromNBT, getActorAt, getActors, getBearingPosOf, getBlockEntityClientSide, getBlockEntityNBT, getBlocks, getContraptionWorld, getDisabledActors, getInteractors, getIsLegacy, getOrCreateClientContraptionLazy, getRadius, getSeatMapping, getSeatOf, getSeats, invalidateClientContraptionChildren, invalidateClientContraptionStructure, invalidateColliders, isActorTypeDisabled, moveBlock, moveGantryPinion, moveGantryShaft, movementAllowed, movePistonHead, movePistonPole, onEntityCreated, onEntityInitialize, removeBlocksFromWorld, resetClientContraption, searchMovedStructure, setActorsActive, setSeatMapping, shouldUpdateAfterMovement, startMoving, stop, tickStorage, toLocalPos, translateMultiblockControllers
-
Field Details
-
blockConductors
-
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(net.minecraft.core.HolderLookup.Provider registries, 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
-
getType
- Specified by:
getTypein classContraption
-
getAssemblyDirection
public net.minecraft.core.Direction getAssemblyDirection() -
hasForwardControls
public boolean hasForwardControls() -
hasBackwardControls
public boolean hasBackwardControls() -
getSecondBogeyPos
public net.minecraft.core.BlockPos getSecondBogeyPos() -
getSimplifiedEntityColliders
- Overrides:
getSimplifiedEntityCollidersin classContraption
-
isHiddenInPortal
public boolean isHiddenInPortal(net.minecraft.core.BlockPos localPos) - Overrides:
isHiddenInPortalin classContraption
-
isHiddenInPortal
public boolean isHiddenInPortal(int posAlongMovementAxis) -
notInPortal
public boolean notInPortal() -
atSeam
public boolean atSeam(net.minecraft.core.BlockPos localPos) -
withinVisible
public boolean withinVisible(net.minecraft.core.BlockPos localPos) -
atSeam
public boolean atSeam(int posAlongMovementAxis) -
withinVisible
public boolean withinVisible(int posAlongMovementAxis) -
getStorage
- Overrides:
getStoragein classContraption
-
writeStorage
public void writeStorage(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider registries, boolean spawnPacket) - Overrides:
writeStoragein classContraption
-
createClientContraption
Description copied from class:ContraptionCreate a newClientContraptioninstance. This will only be called once, when the contraption first has its animation processed by either the render thread or a flywheel executor thread.Most contraptions will not need to implement this.
- Overrides:
createClientContraptionin classContraption- Returns:
- A new ClientContraption instance.
-