Class NetherFortressPieces.NetherBridgePiece
java.lang.Object
net.minecraft.world.level.levelgen.structure.StructurePiece
net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces.NetherBridgePiece
- Direct Known Subclasses:
NetherFortressPieces.BridgeCrossing,NetherFortressPieces.BridgeEndFiller,NetherFortressPieces.BridgeStraight,NetherFortressPieces.CastleCorridorStairsPiece,NetherFortressPieces.CastleCorridorTBalconyPiece,NetherFortressPieces.CastleEntrance,NetherFortressPieces.CastleSmallCorridorCrossingPiece,NetherFortressPieces.CastleSmallCorridorLeftTurnPiece,NetherFortressPieces.CastleSmallCorridorPiece,NetherFortressPieces.CastleSmallCorridorRightTurnPiece,NetherFortressPieces.CastleStalkRoom,NetherFortressPieces.MonsterThrone,NetherFortressPieces.RoomCrossing,NetherFortressPieces.StairsRoom
- Enclosing class:
NetherFortressPieces
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
StructurePiece.BlockSelector -
Field Summary
Fields inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
boundingBox, CAVE_AIR, genDepth -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNetherBridgePiece(StructurePieceType p_228380_, int p_228381_, BoundingBox p_228382_) NetherBridgePiece(StructurePieceType p_228384_, CompoundTag p_228385_) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAdditionalSaveData(StructurePieceSerializationContext p_228389_, CompoundTag p_228390_) private @Nullable StructurePiecegenerateAndAddPiece(NetherFortressPieces.StartPiece pStartPiece, StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth, boolean pCastlePiece) protected @Nullable StructurePiecegenerateChildForward(NetherFortressPieces.StartPiece pStartPiece, StructurePieceAccessor pPieces, RandomSource pRandom, int pOffsetX, int pOffsetY, boolean pCastlePiece) protected @Nullable StructurePiecegenerateChildLeft(NetherFortressPieces.StartPiece pStartPiece, StructurePieceAccessor pPieces, RandomSource pRandom, int pOffsetY, int pOffsetX, boolean pCastlePiece) protected @Nullable StructurePiecegenerateChildRight(NetherFortressPieces.StartPiece pStartPiece, StructurePieceAccessor pPieces, RandomSource pRandom, int pOffsetY, int pOffsetX, boolean pCastlePiece) private @Nullable NetherFortressPieces.NetherBridgePiecegeneratePiece(NetherFortressPieces.StartPiece pStartPiece, List<NetherFortressPieces.PieceWeight> pWeights, StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) protected static booleanisOkBox(BoundingBox pBox) private intMethods inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
addChildren, canBeReplaced, createBoundingBox, createChest, createChest, createDispenser, createTag, fillColumnDown, findCollisionPiece, generateAirBox, generateBox, generateBox, generateBox, generateBox, generateMaybeBox, generateUpperHalfSphere, getBlock, getBoundingBox, getGenDepth, getLocatorPosition, getMirror, getOrientation, getRandomHorizontalDirection, getRotation, getType, getWorldPos, getWorldX, getWorldY, getWorldZ, isCloseToChunk, isInterior, isReplaceableByStructures, makeBoundingBox, maybeGenerateBlock, move, placeBlock, postProcess, reorient, setGenDepth, setOrientation
-
Constructor Details
-
NetherBridgePiece
-
NetherBridgePiece
-
-
Method Details
-
addAdditionalSaveData
protected void addAdditionalSaveData(StructurePieceSerializationContext p_228389_, CompoundTag p_228390_) - Specified by:
addAdditionalSaveDatain classStructurePiece
-
updatePieceWeight
-
generatePiece
private @Nullable NetherFortressPieces.NetherBridgePiece generatePiece(NetherFortressPieces.StartPiece pStartPiece, List<NetherFortressPieces.PieceWeight> pWeights, StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) -
generateAndAddPiece
private @Nullable StructurePiece generateAndAddPiece(NetherFortressPieces.StartPiece pStartPiece, StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth, boolean pCastlePiece) -
generateChildForward
protected @Nullable StructurePiece generateChildForward(NetherFortressPieces.StartPiece pStartPiece, StructurePieceAccessor pPieces, RandomSource pRandom, int pOffsetX, int pOffsetY, boolean pCastlePiece) -
generateChildLeft
protected @Nullable StructurePiece generateChildLeft(NetherFortressPieces.StartPiece pStartPiece, StructurePieceAccessor pPieces, RandomSource pRandom, int pOffsetY, int pOffsetX, boolean pCastlePiece) -
generateChildRight
protected @Nullable StructurePiece generateChildRight(NetherFortressPieces.StartPiece pStartPiece, StructurePieceAccessor pPieces, RandomSource pRandom, int pOffsetY, int pOffsetX, boolean pCastlePiece) -
isOkBox
-