public class SinglePoolElement extends StructurePoolElement
| Modifier and Type | Field and Description |
|---|---|
protected com.mojang.datafixers.util.Either<Identifier,Structure> |
field_24015 |
private static com.mojang.serialization.Codec<com.mojang.datafixers.util.Either<Identifier,Structure>> |
field_24951 |
static com.mojang.serialization.Codec<SinglePoolElement> |
field_24952 |
protected Supplier<StructureProcessorList> |
processors |
CODEC| Modifier | Constructor and Description |
|---|---|
protected |
SinglePoolElement(com.mojang.datafixers.util.Either<Identifier,Structure> either,
Supplier<StructureProcessorList> supplier,
StructurePool.Projection projection) |
|
SinglePoolElement(Structure structure) |
| Modifier and Type | Method and Description |
|---|---|
protected StructurePlacementData |
createPlacementData(BlockRotation blockRotation,
BlockBox blockBox,
boolean keepJigsaws) |
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> |
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) |
private static <T> com.mojang.serialization.DataResult<T> |
method_28877(com.mojang.datafixers.util.Either<Identifier,Structure> either,
com.mojang.serialization.DynamicOps<T> dynamicOps,
T t) |
protected static <E extends SinglePoolElement> |
method_28880() |
protected static <E extends SinglePoolElement> |
method_28882() |
String |
toString() |
getGroundLevelDelta, getProjection, method_16756, method_28883, method_30421, method_30425, method_30426, method_30429, method_30434, method_30435, method_30438, setProjectionprivate static final com.mojang.serialization.Codec<com.mojang.datafixers.util.Either<Identifier,Structure>> field_24951
public static final com.mojang.serialization.Codec<SinglePoolElement> field_24952
protected final com.mojang.datafixers.util.Either<Identifier,Structure> field_24015
protected final Supplier<StructureProcessorList> processors
protected SinglePoolElement(com.mojang.datafixers.util.Either<Identifier,Structure> either, Supplier<StructureProcessorList> supplier, StructurePool.Projection projection)
public SinglePoolElement(Structure structure)
private static <T> com.mojang.serialization.DataResult<T> method_28877(com.mojang.datafixers.util.Either<Identifier,Structure> either, com.mojang.serialization.DynamicOps<T> dynamicOps, T t)
protected static <E extends SinglePoolElement> com.mojang.serialization.codecs.RecordCodecBuilder<E,Supplier<StructureProcessorList>> method_28880()
protected static <E extends SinglePoolElement> com.mojang.serialization.codecs.RecordCodecBuilder<E,com.mojang.datafixers.util.Either<Identifier,Structure>> method_28882()
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 StructurePoolElementpublic BlockBox getBoundingBox(StructureManager structureManager, BlockPos pos, BlockRotation rotation)
getBoundingBox in class StructurePoolElementpublic 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 StructurePoolElementprotected StructurePlacementData createPlacementData(BlockRotation blockRotation, BlockBox blockBox, boolean keepJigsaws)
public StructurePoolElementType<?> getType()
getType in class StructurePoolElement