Class StrongholdPieces.Straight
java.lang.Object
net.minecraft.world.level.levelgen.structure.StructurePiece
net.minecraft.world.level.levelgen.structure.StrongholdPieces.StrongholdPiece
net.minecraft.world.level.levelgen.structure.StrongholdPieces.Straight
- Enclosing class:
- StrongholdPieces
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.levelgen.structure.StrongholdPieces.StrongholdPiece
StrongholdPieces.StrongholdPiece.SmallDoorType
Nested classes/interfaces inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
StructurePiece.BlockSelector
-
Field Summary
Modifier and TypeFieldDescriptionprivate static int
private static int
private boolean
private boolean
private static int
Fields inherited from class net.minecraft.world.level.levelgen.structure.StrongholdPieces.StrongholdPiece
entryDoor
Fields inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
boundingBox, CAVE_AIR, genDepth
-
Constructor Summary
ConstructorDescriptionStraight(int p_73246_, Random p_73247_, BoundingBox p_73248_, Direction p_73249_)
Straight(ServerLevel p_163456_, CompoundTag p_163457_)
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAdditionalSaveData(ServerLevel p_163459_, CompoundTag p_163460_)
void
addChildren(StructurePiece p_163462_, StructurePieceAccessor p_163463_, Random p_163464_)
static StrongholdPieces.Straight
createPiece(StructurePieceAccessor p_163466_, Random p_163467_, int p_163468_, int p_163469_, int p_163470_, Direction p_163471_, int p_163472_)
boolean
postProcess(WorldGenLevel p_73254_, StructureFeatureManager p_73255_, ChunkGenerator p_73256_, Random p_73257_, BoundingBox p_73258_, ChunkPos p_73259_, BlockPos p_73260_)
Methods inherited from class net.minecraft.world.level.levelgen.structure.StrongholdPieces.StrongholdPiece
generateSmallDoor, generateSmallDoorChildForward, generateSmallDoorChildLeft, generateSmallDoorChildRight, getNoiseEffect, isOkBox, randomSmallDoor
Methods inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
canBeReplaced, createChest, createChest, createDispenser, createTag, fillColumnDown, 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, reorient, setOrientation
-
Field Details
-
WIDTH
private static final int WIDTH- See Also:
- Constant Field Values
-
HEIGHT
private static final int HEIGHT- See Also:
- Constant Field Values
-
DEPTH
private static final int DEPTH- See Also:
- Constant Field Values
-
leftChild
private final boolean leftChild -
rightChild
private final boolean rightChild
-
-
Constructor Details
-
Straight
-
Straight
-
-
Method Details
-
addAdditionalSaveData
- Overrides:
addAdditionalSaveData
in classStrongholdPieces.StrongholdPiece
-
addChildren
public void addChildren(StructurePiece p_163462_, StructurePieceAccessor p_163463_, Random p_163464_)- Overrides:
addChildren
in classStructurePiece
-
createPiece
public static StrongholdPieces.Straight createPiece(StructurePieceAccessor p_163466_, Random p_163467_, int p_163468_, int p_163469_, int p_163470_, Direction p_163471_, int p_163472_) -
postProcess
public boolean postProcess(WorldGenLevel p_73254_, StructureFeatureManager p_73255_, ChunkGenerator p_73256_, Random p_73257_, BoundingBox p_73258_, ChunkPos p_73259_, BlockPos p_73260_)- Specified by:
postProcess
in classStructurePiece
-