Class BearingContraption
java.lang.Object
com.simibubi.create.content.contraptions.Contraption
com.simibubi.create.content.contraptions.bearing.BearingContraption
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected net.minecraft.core.Directionprotected intFields 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 TypeMethodDescriptionvoidaddBlock(net.minecraft.world.level.Level level, 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.DirectionintgetType()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(net.minecraft.core.HolderLookup.Provider registries, boolean spawnPacket) Methods inherited from class com.simibubi.create.content.contraptions.Contraption
addBlocksToWorld, addPassengersToWorld, addToInitialFrontier, capture, captureMultiblock, containsBlockBreakers, createClientContraption, customBlockPlacement, customBlockRemoval, disableActorOnStart, expandBoundsAroundAxis, forEachActor, fromNBT, getActorAt, getActors, getBearingPosOf, getBlockEntityClientSide, getBlockEntityNBT, getBlocks, getContraptionWorld, getDisabledActors, getInteractors, getIsLegacy, getOrCreateClientContraptionLazy, getRadius, getSeatMapping, getSeatOf, getSeats, getSimplifiedEntityColliders, getStorage, invalidateClientContraptionChildren, invalidateClientContraptionStructure, invalidateColliders, isActorTypeDisabled, isHiddenInPortal, moveBlock, moveGantryPinion, moveGantryShaft, movementAllowed, movePistonHead, movePistonPole, onEntityCreated, onEntityInitialize, removeBlocksFromWorld, resetClientContraption, searchMovedStructure, setActorsActive, setSeatMapping, shouldUpdateAfterMovement, startMoving, stop, tickStorage, toLocalPos, translateMultiblockControllers, writeStorage
-
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.world.level.Level level, 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(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 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
-