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 type, int genDepth, BoundingBox boundingBox) NetherBridgePiece(StructurePieceType type, CompoundTag tag) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprivate StructurePiecegenerateAndAddPiece(NetherFortressPieces.StartPiece startPiece, StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth, boolean castlePiece) protected StructurePiecegenerateChildForward(NetherFortressPieces.StartPiece startPiece, StructurePieceAccessor pieces, RandomSource random, int offsetX, int offsetY, boolean castlePiece) protected StructurePiecegenerateChildLeft(NetherFortressPieces.StartPiece startPiece, StructurePieceAccessor pieces, RandomSource random, int offsetY, int offsetX, boolean castlePiece) protected StructurePiecegenerateChildRight(NetherFortressPieces.StartPiece startPiece, StructurePieceAccessor pieces, RandomSource random, int offsetY, int offsetX, boolean castlePiece) generatePiece(NetherFortressPieces.StartPiece startPiece, List<NetherFortressPieces.PieceWeight> weights, StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth) protected static booleanisOkBox(BoundingBox box) 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
- Specified by:
addAdditionalSaveDatain classStructurePiece
-
updatePieceWeight
-
generatePiece
private NetherFortressPieces.NetherBridgePiece generatePiece(NetherFortressPieces.StartPiece startPiece, List<NetherFortressPieces.PieceWeight> weights, StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth) -
generateAndAddPiece
private StructurePiece generateAndAddPiece(NetherFortressPieces.StartPiece startPiece, StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, @Nullable Direction orientation, int genDepth, boolean castlePiece) -
generateChildForward
@Nullable protected StructurePiece generateChildForward(NetherFortressPieces.StartPiece startPiece, StructurePieceAccessor pieces, RandomSource random, int offsetX, int offsetY, boolean castlePiece) -
generateChildLeft
@Nullable protected StructurePiece generateChildLeft(NetherFortressPieces.StartPiece startPiece, StructurePieceAccessor pieces, RandomSource random, int offsetY, int offsetX, boolean castlePiece) -
generateChildRight
@Nullable protected StructurePiece generateChildRight(NetherFortressPieces.StartPiece startPiece, StructurePieceAccessor pieces, RandomSource random, int offsetY, int offsetX, boolean castlePiece) -
isOkBox
-