public class ListPoolElement extends StructurePoolElement
Modifier and Type | Field and Description |
---|---|
static com.mojang.serialization.Codec<ListPoolElement> |
CODEC |
private List<StructurePoolElement> |
elements |
Constructor and Description |
---|
ListPoolElement(List<StructurePoolElement> elements,
StructurePool.Projection projection) |
Modifier and Type | Method and Description |
---|---|
boolean |
generate(StructureManager structureManager,
StructureWorldAccess structureWorldAccess,
StructureAccessor structureAccessor,
ChunkGenerator chunkGenerator,
BlockPos blockPos,
BlockPos blockPos2,
BlockRotation blockRotation,
BlockBox blockBox,
Random random,
boolean keepJigsaws) |
BlockBox |
getBoundingBox(StructureManager structureManager,
BlockPos pos,
BlockRotation rotation) |
List<Structure.StructureBlockInfo> |
getStructureBlockInfos(StructureManager structureManager,
BlockPos pos,
BlockRotation rotation,
Random random) |
StructurePoolElementType<?> |
getType() |
private void |
setAllElementsProjection(StructurePool.Projection projection) |
StructurePoolElement |
setProjection(StructurePool.Projection projection) |
String |
toString() |
getGroundLevelDelta, getProjection, method_16756, method_28883, method_30421, method_30425, method_30426, method_30429, method_30434, method_30435, method_30438
public static final com.mojang.serialization.Codec<ListPoolElement> CODEC
private final List<StructurePoolElement> elements
public ListPoolElement(List<StructurePoolElement> elements, StructurePool.Projection projection)
public List<Structure.StructureBlockInfo> getStructureBlockInfos(StructureManager structureManager, BlockPos pos, BlockRotation rotation, Random random)
getStructureBlockInfos
in class StructurePoolElement
public BlockBox getBoundingBox(StructureManager structureManager, BlockPos pos, BlockRotation rotation)
getBoundingBox
in class StructurePoolElement
public boolean generate(StructureManager structureManager, StructureWorldAccess structureWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, BlockPos blockPos, BlockPos blockPos2, BlockRotation blockRotation, BlockBox blockBox, Random random, boolean keepJigsaws)
generate
in class StructurePoolElement
public StructurePoolElementType<?> getType()
getType
in class StructurePoolElement
public StructurePoolElement setProjection(StructurePool.Projection projection)
setProjection
in class StructurePoolElement
private void setAllElementsProjection(StructurePool.Projection projection)