Package net.minecraft.structure.pool
Class ListPoolElement
java.lang.Object
net.minecraft.structure.pool.StructurePoolElement
net.minecraft.structure.pool.ListPoolElement
public class ListPoolElement extends StructurePoolElement
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<ListPoolElement>
CODEC
private List<StructurePoolElement>
elements
-
Constructor Summary
Constructors Constructor Description ListPoolElement(List<StructurePoolElement> elements, StructurePool.Projection projection)
-
Method Summary
Modifier and Type Method 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()
Methods inherited from class net.minecraft.structure.pool.StructurePoolElement
getGroundLevelDelta, getProjection, method_16756, method_28883, method_30421, method_30425, method_30426, method_30429, method_30434, method_30435, method_30438
-
Field Details
-
CODEC
-
elements
-
-
Constructor Details
-
ListPoolElement
-
-
Method Details
-
getStructureBlockInfos
public List<Structure.StructureBlockInfo> getStructureBlockInfos(StructureManager structureManager, BlockPos pos, BlockRotation rotation, Random random)- Specified by:
getStructureBlockInfos
in classStructurePoolElement
-
getBoundingBox
public BlockBox getBoundingBox(StructureManager structureManager, BlockPos pos, BlockRotation rotation)- Specified by:
getBoundingBox
in classStructurePoolElement
-
generate
public boolean generate(StructureManager structureManager, StructureWorldAccess structureWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, BlockPos blockPos, BlockPos blockPos2, BlockRotation blockRotation, BlockBox blockBox, Random random, boolean keepJigsaws)- Specified by:
generate
in classStructurePoolElement
-
getType
- Specified by:
getType
in classStructurePoolElement
-
setProjection
- Overrides:
setProjection
in classStructurePoolElement
-
toString
-
setAllElementsProjection
-