public class SinglePoolElement extends StructurePoolElement
Modifier and Type | Field and Description |
---|---|
protected com.mojang.datafixers.util.Either<Identifier,Structure> |
field_24015 |
protected ImmutableList<StructureProcessor> |
processors |
Constructor and Description |
---|
SinglePoolElement(com.mojang.datafixers.Dynamic<?> dynamic) |
SinglePoolElement(String string)
Deprecated.
|
SinglePoolElement(String location,
List<StructureProcessor> processors)
Deprecated.
|
SinglePoolElement(String string,
List<StructureProcessor> list,
StructurePool.Projection projection) |
SinglePoolElement(Structure structure,
List<StructureProcessor> list,
StructurePool.Projection projection) |
Modifier and Type | Method and Description |
---|---|
protected StructurePlacementData |
createPlacementData(BlockRotation blockRotation,
BlockBox blockBox,
boolean bool) |
boolean |
generate(StructureManager structureManager,
IWorld world,
StructureAccessor structureAccessor,
ChunkGenerator<?> chunkGenerator,
BlockPos blockPos,
BlockPos blockPos2,
BlockRotation blockRotation,
BlockBox blockBox,
Random random,
boolean bool) |
BlockBox |
getBoundingBox(StructureManager structureManager,
BlockPos pos,
BlockRotation rotation) |
List<Structure.StructureBlockInfo> |
getDataStructureBlocks(StructureManager structureManager,
BlockPos blockPos,
BlockRotation blockRotation,
boolean mirroredAndRotated) |
List<Structure.StructureBlockInfo> |
getStructureBlockInfos(StructureManager structureManager,
BlockPos pos,
BlockRotation rotation,
Random random) |
StructurePoolElementType |
getType() |
private Structure |
method_27233(StructureManager structureManager) |
<T> com.mojang.datafixers.Dynamic<T> |
rawToDynamic(com.mojang.datafixers.types.DynamicOps<T> dynamicOps) |
String |
toString() |
getGroundLevelDelta, getProjection, method_16756, setProjection, toDynamic
protected final com.mojang.datafixers.util.Either<Identifier,Structure> field_24015
protected final ImmutableList<StructureProcessor> processors
@Deprecated public SinglePoolElement(String location, List<StructureProcessor> processors)
public SinglePoolElement(String string, List<StructureProcessor> list, StructurePool.Projection projection)
public SinglePoolElement(Structure structure, List<StructureProcessor> list, StructurePool.Projection projection)
@Deprecated public SinglePoolElement(String string)
public SinglePoolElement(com.mojang.datafixers.Dynamic<?> dynamic)
private Structure method_27233(StructureManager structureManager)
public List<Structure.StructureBlockInfo> getDataStructureBlocks(StructureManager structureManager, BlockPos blockPos, BlockRotation blockRotation, boolean mirroredAndRotated)
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, IWorld world, StructureAccessor structureAccessor, ChunkGenerator<?> chunkGenerator, BlockPos blockPos, BlockPos blockPos2, BlockRotation blockRotation, BlockBox blockBox, Random random, boolean bool)
generate
in class StructurePoolElement
protected StructurePlacementData createPlacementData(BlockRotation blockRotation, BlockBox blockBox, boolean bool)
public StructurePoolElementType getType()
getType
in class StructurePoolElement
public <T> com.mojang.datafixers.Dynamic<T> rawToDynamic(com.mojang.datafixers.types.DynamicOps<T> dynamicOps)
rawToDynamic
in class StructurePoolElement