Package net.minecraft.structure.pool
Class SinglePoolElement
java.lang.Object
net.minecraft.structure.pool.StructurePoolElement
net.minecraft.structure.pool.SinglePoolElement
- Direct Known Subclasses:
LegacySinglePoolElement
public class SinglePoolElement extends StructurePoolElement
-
Field Summary
Fields Modifier and Type Field 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
Fields inherited from class net.minecraft.structure.pool.StructurePoolElement
CODEC
-
Constructor Summary
Constructors Modifier Constructor Description protected
SinglePoolElement(com.mojang.datafixers.util.Either<Identifier,Structure> either, Supplier<StructureProcessorList> supplier, StructurePool.Projection projection)
SinglePoolElement(Structure structure)
-
Method Summary
Modifier and Type Method 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>
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()
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, setProjection
-
Field Details
-
field_24951
private static final com.mojang.serialization.Codec<com.mojang.datafixers.util.Either<Identifier,Structure>> field_24951 -
field_24952
-
field_24015
-
processors
-
-
Constructor Details
-
SinglePoolElement
protected SinglePoolElement(com.mojang.datafixers.util.Either<Identifier,Structure> either, Supplier<StructureProcessorList> supplier, StructurePool.Projection projection) -
SinglePoolElement
-
-
Method Details
-
method_28877
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) -
method_28880
protected static <E extends SinglePoolElement> com.mojang.serialization.codecs.RecordCodecBuilder<E,Supplier<StructureProcessorList>> method_28880() -
method_28882
protected static <E extends SinglePoolElement> com.mojang.serialization.codecs.RecordCodecBuilder<E,com.mojang.datafixers.util.Either<Identifier,Structure>> method_28882() -
method_27233
-
getDataStructureBlocks
public List<Structure.StructureBlockInfo> getDataStructureBlocks(StructureManager structureManager, BlockPos blockPos, BlockRotation blockRotation, boolean mirroredAndRotated) -
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
-
createPlacementData
protected StructurePlacementData createPlacementData(BlockRotation blockRotation, BlockBox blockBox, boolean keepJigsaws) -
getType
- Specified by:
getType
in classStructurePoolElement
-
toString
-