Class StrongholdPieces.PieceWeight
java.lang.Object
net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces.PieceWeight
- Enclosing class:
StrongholdPieces
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal int
final Class
<? extends StrongholdPieces.StrongholdPiece> int
final int
-
Constructor Summary
ConstructorsConstructorDescriptionPieceWeight
(Class<? extends StrongholdPieces.StrongholdPiece> pieceClass, int weight, int maxPlaceCount) -
Method Summary
-
Field Details
-
pieceClass
-
weight
public final int weight -
placeCount
public int placeCount -
maxPlaceCount
public final int maxPlaceCount
-
-
Constructor Details
-
PieceWeight
public PieceWeight(Class<? extends StrongholdPieces.StrongholdPiece> pieceClass, int weight, int maxPlaceCount)
-
-
Method Details
-
doPlace
public boolean doPlace(int genDepth) -
isValid
public boolean isValid()
-