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_24015private static com.mojang.serialization.Codec<com.mojang.datafixers.util.Either<Identifier,Structure>>field_24951static com.mojang.serialization.Codec<SinglePoolElement>field_24952protected Supplier<StructureProcessorList>processorsFields inherited from class net.minecraft.structure.pool.StructurePoolElement
CODEC -
Constructor Summary
Constructors Modifier Constructor Description protectedSinglePoolElement(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 StructurePlacementDatacreatePlacementData(BlockRotation blockRotation, BlockBox blockBox, boolean keepJigsaws)booleangenerate(StructureManager structureManager, StructureWorldAccess structureWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, BlockPos blockPos, BlockPos blockPos2, BlockRotation blockRotation, BlockBox blockBox, Random random, boolean keepJigsaws)BlockBoxgetBoundingBox(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 Structuremethod_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()StringtoString()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:
getStructureBlockInfosin classStructurePoolElement
-
getBoundingBox
public BlockBox getBoundingBox(StructureManager structureManager, BlockPos pos, BlockRotation rotation)- Specified by:
getBoundingBoxin 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:
generatein classStructurePoolElement
-
createPlacementData
protected StructurePlacementData createPlacementData(BlockRotation blockRotation, BlockBox blockBox, boolean keepJigsaws) -
getType
- Specified by:
getTypein classStructurePoolElement
-
toString
-