Class FortressPieces.Piece
- java.lang.Object
-
- net.minecraft.world.gen.feature.structure.StructurePiece
-
- net.minecraft.world.gen.feature.structure.FortressPieces.Piece
-
- Direct Known Subclasses:
FortressPieces.Corridor
,FortressPieces.Corridor2
,FortressPieces.Corridor3
,FortressPieces.Corridor4
,FortressPieces.Corridor5
,FortressPieces.Crossing
,FortressPieces.Crossing2
,FortressPieces.Crossing3
,FortressPieces.End
,FortressPieces.Entrance
,FortressPieces.NetherStalkRoom
,FortressPieces.Stairs
,FortressPieces.Straight
,FortressPieces.Throne
- Enclosing class:
- FortressPieces
abstract static class FortressPieces.Piece extends StructurePiece
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.world.gen.feature.structure.StructurePiece
StructurePiece.BlockSelector
-
-
Field Summary
-
Fields inherited from class net.minecraft.world.gen.feature.structure.StructurePiece
boundingBox, CAVE_AIR, genDepth
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Piece(IStructurePieceType p_i50260_1_, int p_i50260_2_)
Piece(IStructurePieceType p_i50261_1_, CompoundNBT p_i50261_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addAdditionalSaveData(CompoundNBT p_143011_1_)
private StructurePiece
generateAndAddPiece(FortressPieces.Start p_175870_1_, java.util.List<StructurePiece> p_175870_2_, java.util.Random p_175870_3_, int p_175870_4_, int p_175870_5_, int p_175870_6_, Direction p_175870_7_, int p_175870_8_, boolean p_175870_9_)
protected StructurePiece
generateChildForward(FortressPieces.Start p_74963_1_, java.util.List<StructurePiece> p_74963_2_, java.util.Random p_74963_3_, int p_74963_4_, int p_74963_5_, boolean p_74963_6_)
protected StructurePiece
generateChildLeft(FortressPieces.Start p_74961_1_, java.util.List<StructurePiece> p_74961_2_, java.util.Random p_74961_3_, int p_74961_4_, int p_74961_5_, boolean p_74961_6_)
protected StructurePiece
generateChildRight(FortressPieces.Start p_74965_1_, java.util.List<StructurePiece> p_74965_2_, java.util.Random p_74965_3_, int p_74965_4_, int p_74965_5_, boolean p_74965_6_)
private FortressPieces.Piece
generatePiece(FortressPieces.Start p_175871_1_, java.util.List<FortressPieces.PieceWeight> p_175871_2_, java.util.List<StructurePiece> p_175871_3_, java.util.Random p_175871_4_, int p_175871_5_, int p_175871_6_, int p_175871_7_, Direction p_175871_8_, int p_175871_9_)
protected static boolean
isOkBox(MutableBoundingBox p_74964_0_)
private int
updatePieceWeight(java.util.List<FortressPieces.PieceWeight> p_74960_1_)
-
Methods inherited from class net.minecraft.world.gen.feature.structure.StructurePiece
addChildren, createChest, createChest, createDispenser, createTag, edgesLiquid, fillColumnDown, findCollisionPiece, generateAirBox, generateBox, generateBox, generateMaybeBox, generateUpperHalfSphere, getBlock, getBoundingBox, getGenDepth, getOrientation, getRotation, getType, getWorldX, getWorldY, getWorldZ, isCloseToChunk, isInterior, maybeGenerateBlock, move, placeBlock, postProcess, reorient, setOrientation
-
-
-
-
Constructor Detail
-
Piece
protected Piece(IStructurePieceType p_i50260_1_, int p_i50260_2_)
-
Piece
public Piece(IStructurePieceType p_i50261_1_, CompoundNBT p_i50261_2_)
-
-
Method Detail
-
addAdditionalSaveData
protected void addAdditionalSaveData(CompoundNBT p_143011_1_)
- Specified by:
addAdditionalSaveData
in classStructurePiece
-
updatePieceWeight
private int updatePieceWeight(java.util.List<FortressPieces.PieceWeight> p_74960_1_)
-
generatePiece
private FortressPieces.Piece generatePiece(FortressPieces.Start p_175871_1_, java.util.List<FortressPieces.PieceWeight> p_175871_2_, java.util.List<StructurePiece> p_175871_3_, java.util.Random p_175871_4_, int p_175871_5_, int p_175871_6_, int p_175871_7_, Direction p_175871_8_, int p_175871_9_)
-
generateAndAddPiece
private StructurePiece generateAndAddPiece(FortressPieces.Start p_175870_1_, java.util.List<StructurePiece> p_175870_2_, java.util.Random p_175870_3_, int p_175870_4_, int p_175870_5_, int p_175870_6_, @Nullable Direction p_175870_7_, int p_175870_8_, boolean p_175870_9_)
-
generateChildForward
@Nullable protected StructurePiece generateChildForward(FortressPieces.Start p_74963_1_, java.util.List<StructurePiece> p_74963_2_, java.util.Random p_74963_3_, int p_74963_4_, int p_74963_5_, boolean p_74963_6_)
-
generateChildLeft
@Nullable protected StructurePiece generateChildLeft(FortressPieces.Start p_74961_1_, java.util.List<StructurePiece> p_74961_2_, java.util.Random p_74961_3_, int p_74961_4_, int p_74961_5_, boolean p_74961_6_)
-
generateChildRight
@Nullable protected StructurePiece generateChildRight(FortressPieces.Start p_74965_1_, java.util.List<StructurePiece> p_74965_2_, java.util.Random p_74965_3_, int p_74965_4_, int p_74965_5_, boolean p_74965_6_)
-
isOkBox
protected static boolean isOkBox(MutableBoundingBox p_74964_0_)
-
-