Class BearingContraption
java.lang.Object
com.simibubi.create.content.contraptions.components.structureMovement.Contraption
com.simibubi.create.content.contraptions.components.structureMovement.bearing.BearingContraption
-
Nested Class Summary
Nested classes/interfaces inherited from class com.simibubi.create.content.contraptions.components.structureMovement.Contraption
Contraption.ContraptionInvWrapper -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected net.minecraft.core.Directionprotected intFields inherited from class com.simibubi.create.content.contraptions.components.structureMovement.Contraption
actors, anchor, blocks, bounds, entity, fluidInventory, fluidStorage, hasUniversalCreativeCrate, interactors, inventory, maybeInstancedTileEntities, presentTileEntities, seatMapping, seats, simplifiedEntityColliders, specialRenderedTileEntities, stabilizedSubContraptions, stalled, storage, superglue, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBlock(net.minecraft.core.BlockPos pos, org.apache.commons.lang3.tuple.Pair<net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo, net.minecraft.world.level.block.entity.BlockEntity> capture) booleanassemble(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) booleancanBeStabilized(net.minecraft.core.Direction facing, net.minecraft.core.BlockPos localPos) net.minecraft.core.Directionintprotected ContraptionTypegetType()protected booleanisAnchoringBlockAt(net.minecraft.core.BlockPos pos) voidreadNBT(net.minecraft.world.level.Level world, net.minecraft.nbt.CompoundTag tag, boolean spawnData) net.minecraft.nbt.CompoundTagwriteNBT(boolean spawnPacket) Methods inherited from class com.simibubi.create.content.contraptions.components.structureMovement.Contraption
addBlocksToWorld, addExtraInventories, addGlue, addPassengersToWorld, addToInitialFrontier, capture, customBlockPlacement, customBlockRemoval, expandBoundsAroundAxis, foreachActor, fromNBT, getActors, getBearingPosOf, getBlocks, getContraptionWorld, getInteractors, getMaxDistSqr, getRadius, getSeatMapping, getSeatOf, getSeats, getTileEntityNBT, invalidateColliders, moveBlock, moveGantryPinion, moveGantryShaft, movementAllowed, movePistonHead, movePistonPole, onEntityCreated, onEntityInitialize, onEntityRemoved, onEntityTick, removeBlocksFromWorld, searchMovedStructure, setSeatMapping, shouldUpdateAfterMovement, startMoving, stop, toLocalPos, updateContainedFluid
-
Field Details
-
sailBlocks
protected int sailBlocks -
facing
protected net.minecraft.core.Direction facing
-
-
Constructor Details
-
BearingContraption
public BearingContraption() -
BearingContraption
public BearingContraption(boolean isWindmill, net.minecraft.core.Direction facing)
-
-
Method Details
-
assemble
public boolean assemble(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) throws AssemblyException - Specified by:
assemblein classContraption- Throws:
AssemblyException
-
getType
- Specified by:
getTypein classContraption
-
isAnchoringBlockAt
protected boolean isAnchoringBlockAt(net.minecraft.core.BlockPos pos) - Overrides:
isAnchoringBlockAtin classContraption
-
addBlock
public void addBlock(net.minecraft.core.BlockPos pos, org.apache.commons.lang3.tuple.Pair<net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo, net.minecraft.world.level.block.entity.BlockEntity> capture) - Overrides:
addBlockin 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 tag, boolean spawnData) - Overrides:
readNBTin classContraption
-
getSailBlocks
public int getSailBlocks() -
getFacing
public net.minecraft.core.Direction getFacing() -
canBeStabilized
public boolean canBeStabilized(net.minecraft.core.Direction facing, net.minecraft.core.BlockPos localPos) - Specified by:
canBeStabilizedin classContraption
-
makeLighter
- Overrides:
makeLighterin classContraption
-