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 ImmutableList<StructureProcessor> |
processors |
field_24953| Modifier | Constructor and Description |
|---|---|
protected |
SinglePoolElement(com.mojang.datafixers.util.Either<Identifier,Structure> either,
List<StructureProcessor> list,
StructurePool.Projection projection) |
|
SinglePoolElement(String string)
Deprecated.
|
|
SinglePoolElement(String location,
List<StructureProcessor> processors)
Deprecated.
|
|
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,
ServerWorldAccess serverWorldAccess,
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) |
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, 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 ImmutableList<StructureProcessor> processors
@Deprecated public SinglePoolElement(String location, List<StructureProcessor> processors)
protected SinglePoolElement(com.mojang.datafixers.util.Either<Identifier,Structure> either, List<StructureProcessor> list, StructurePool.Projection projection)
public SinglePoolElement(Structure structure, List<StructureProcessor> list, StructurePool.Projection projection)
@Deprecated public SinglePoolElement(String string)
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,List<StructureProcessor>> 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, ServerWorldAccess serverWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, BlockPos blockPos, BlockPos blockPos2, BlockRotation blockRotation, BlockBox blockBox, Random random, boolean bool)
generate in class StructurePoolElementprotected StructurePlacementData createPlacementData(BlockRotation blockRotation, BlockBox blockBox, boolean bool)
public StructurePoolElementType<?> getType()
getType in class StructurePoolElement