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 startPiece, StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth, boolean castlePiece) protected @Nullable StructurePiecegenerateChildForward(NetherFortressPieces.StartPiece startPiece, StructurePieceAccessor pieces, RandomSource random, int offsetX, int offsetY, boolean castlePiece) protected @Nullable StructurePiecegenerateChildLeft(NetherFortressPieces.StartPiece startPiece, StructurePieceAccessor pieces, RandomSource random, int offsetY, int offsetX, boolean castlePiece) protected @Nullable StructurePiecegenerateChildRight(NetherFortressPieces.StartPiece startPiece, StructurePieceAccessor pieces, RandomSource random, int offsetY, int offsetX, boolean castlePiece) private @Nullable NetherFortressPieces.NetherBridgePiecegeneratePiece(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
protected void addAdditionalSaveData(StructurePieceSerializationContext p_228389_, CompoundTag p_228390_) - Specified by:
addAdditionalSaveDatain classStructurePiece
-
updatePieceWeight
-
generatePiece
private @Nullable 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 @Nullable StructurePiece generateAndAddPiece(NetherFortressPieces.StartPiece startPiece, StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth, boolean castlePiece) -
generateChildForward
protected @Nullable StructurePiece generateChildForward(NetherFortressPieces.StartPiece startPiece, StructurePieceAccessor pieces, RandomSource random, int offsetX, int offsetY, boolean castlePiece) -
generateChildLeft
protected @Nullable StructurePiece generateChildLeft(NetherFortressPieces.StartPiece startPiece, StructurePieceAccessor pieces, RandomSource random, int offsetY, int offsetX, boolean castlePiece) -
generateChildRight
protected @Nullable StructurePiece generateChildRight(NetherFortressPieces.StartPiece startPiece, StructurePieceAccessor pieces, RandomSource random, int offsetY, int offsetX, boolean castlePiece) -
isOkBox
-