Class StrongholdPieces
- java.lang.Object
-
- net.minecraft.world.gen.feature.structure.StrongholdPieces
-
public class StrongholdPieces extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StrongholdPieces.ChestCorridor
static class
StrongholdPieces.Corridor
static class
StrongholdPieces.Crossing
static class
StrongholdPieces.LeftTurn
static class
StrongholdPieces.Library
(package private) static class
StrongholdPieces.PieceWeight
static class
StrongholdPieces.PortalRoom
static class
StrongholdPieces.Prison
static class
StrongholdPieces.RightTurn
static class
StrongholdPieces.RoomCrossing
static class
StrongholdPieces.Stairs
static class
StrongholdPieces.Stairs2
static class
StrongholdPieces.StairsStraight
(package private) static class
StrongholdPieces.Stones
static class
StrongholdPieces.Straight
(package private) static class
StrongholdPieces.Stronghold
static class
StrongholdPieces.Turn
-
Field Summary
Fields Modifier and Type Field Description private static java.util.List<StrongholdPieces.PieceWeight>
currentPieces
private static java.lang.Class<? extends StrongholdPieces.Stronghold>
imposedPiece
private static StrongholdPieces.Stones
SMOOTH_STONE_SELECTOR
private static StrongholdPieces.PieceWeight[]
STRONGHOLD_PIECE_WEIGHTS
private static int
totalWeight
-
Constructor Summary
Constructors Constructor Description StrongholdPieces()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static StrongholdPieces.Stronghold
findAndCreatePieceFactory(java.lang.Class<? extends StrongholdPieces.Stronghold> p_175954_0_, java.util.List<StructurePiece> p_175954_1_, java.util.Random p_175954_2_, int p_175954_3_, int p_175954_4_, int p_175954_5_, Direction p_175954_6_, int p_175954_7_)
private static StructurePiece
generateAndAddPiece(StrongholdPieces.Stairs2 p_175953_0_, java.util.List<StructurePiece> p_175953_1_, java.util.Random p_175953_2_, int p_175953_3_, int p_175953_4_, int p_175953_5_, Direction p_175953_6_, int p_175953_7_)
private static StrongholdPieces.Stronghold
generatePieceFromSmallDoor(StrongholdPieces.Stairs2 p_175955_0_, java.util.List<StructurePiece> p_175955_1_, java.util.Random p_175955_2_, int p_175955_3_, int p_175955_4_, int p_175955_5_, Direction p_175955_6_, int p_175955_7_)
static void
resetPieces()
private static boolean
updatePieceWeight()
-
-
-
Field Detail
-
STRONGHOLD_PIECE_WEIGHTS
private static final StrongholdPieces.PieceWeight[] STRONGHOLD_PIECE_WEIGHTS
-
currentPieces
private static java.util.List<StrongholdPieces.PieceWeight> currentPieces
-
imposedPiece
private static java.lang.Class<? extends StrongholdPieces.Stronghold> imposedPiece
-
totalWeight
private static int totalWeight
-
SMOOTH_STONE_SELECTOR
private static final StrongholdPieces.Stones SMOOTH_STONE_SELECTOR
-
-
Method Detail
-
resetPieces
public static void resetPieces()
-
updatePieceWeight
private static boolean updatePieceWeight()
-
findAndCreatePieceFactory
private static StrongholdPieces.Stronghold findAndCreatePieceFactory(java.lang.Class<? extends StrongholdPieces.Stronghold> p_175954_0_, java.util.List<StructurePiece> p_175954_1_, java.util.Random p_175954_2_, int p_175954_3_, int p_175954_4_, int p_175954_5_, @Nullable Direction p_175954_6_, int p_175954_7_)
-
generatePieceFromSmallDoor
private static StrongholdPieces.Stronghold generatePieceFromSmallDoor(StrongholdPieces.Stairs2 p_175955_0_, java.util.List<StructurePiece> p_175955_1_, java.util.Random p_175955_2_, int p_175955_3_, int p_175955_4_, int p_175955_5_, Direction p_175955_6_, int p_175955_7_)
-
generateAndAddPiece
private static StructurePiece generateAndAddPiece(StrongholdPieces.Stairs2 p_175953_0_, java.util.List<StructurePiece> p_175953_1_, java.util.Random p_175953_2_, int p_175953_3_, int p_175953_4_, int p_175953_5_, @Nullable Direction p_175953_6_, int p_175953_7_)
-
-