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 StructurePiece
StructurePiece.BlockSelector -
Field Summary
Fields inherited from class 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 @Nullable StructurePiecegenerateAndAddPiece(NetherFortressPieces.StartPiece startPiece, StructurePiecesBuilder builder, RandomSource random, int footX, int footY, int footZ, Direction direction, int depth, boolean isCastle) protected @Nullable StructurePiecegenerateChildForward(NetherFortressPieces.StartPiece startPiece, StructurePiecesBuilder builder, RandomSource random, int xOff, int yOff, boolean isCastle) protected @Nullable StructurePiecegenerateChildLeft(NetherFortressPieces.StartPiece startPiece, StructurePiecesBuilder builder, RandomSource random, int yOff, int zOff, boolean isCastle) protected @Nullable StructurePiecegenerateChildRight(NetherFortressPieces.StartPiece startPiece, StructurePiecesBuilder builder, RandomSource random, int yOff, int zOff, boolean isCastle) generatePiece(NetherFortressPieces.StartPiece startPiece, List<NetherFortressPieces.PieceWeight> currentPieces, StructurePiecesBuilder builder, RandomSource random, int footX, int footY, int footZ, Direction direction, int depth) protected static booleanisOkBox(BoundingBox box) private intupdatePieceWeight(List<NetherFortressPieces.PieceWeight> currentPieces) Methods inherited from class 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 @Nullable NetherFortressPieces.NetherBridgePiece generatePiece(NetherFortressPieces.StartPiece startPiece, List<NetherFortressPieces.PieceWeight> currentPieces, StructurePiecesBuilder builder, RandomSource random, int footX, int footY, int footZ, Direction direction, int depth) -
generateAndAddPiece
private @Nullable StructurePiece generateAndAddPiece(NetherFortressPieces.StartPiece startPiece, StructurePiecesBuilder builder, RandomSource random, int footX, int footY, int footZ, Direction direction, int depth, boolean isCastle) -
generateChildForward
protected @Nullable StructurePiece generateChildForward(NetherFortressPieces.StartPiece startPiece, StructurePiecesBuilder builder, RandomSource random, int xOff, int yOff, boolean isCastle) -
generateChildLeft
protected @Nullable StructurePiece generateChildLeft(NetherFortressPieces.StartPiece startPiece, StructurePiecesBuilder builder, RandomSource random, int yOff, int zOff, boolean isCastle) -
generateChildRight
protected @Nullable StructurePiece generateChildRight(NetherFortressPieces.StartPiece startPiece, StructurePiecesBuilder builder, RandomSource random, int yOff, int zOff, boolean isCastle) -
isOkBox
-