Class SinglePoolElement
java.lang.Object
net.minecraft.world.level.levelgen.feature.structures.StructurePoolElement
net.minecraft.world.level.levelgen.feature.structures.SinglePoolElement
- Direct Known Subclasses:
LegacySinglePoolElement
-
Field Summary
Modifier and TypeFieldDescriptionstatic com.mojang.serialization.Codec<SinglePoolElement>
protected Supplier<StructureProcessorList>
protected com.mojang.datafixers.util.Either<ResourceLocation,StructureTemplate>
private static com.mojang.serialization.Codec<com.mojang.datafixers.util.Either<ResourceLocation,StructureTemplate>>
-
Constructor Summary
ModifierConstructorDescriptionprotected
SinglePoolElement(com.mojang.datafixers.util.Either<ResourceLocation,StructureTemplate> p_69102_, Supplier<StructureProcessorList> p_69103_, StructureTemplatePool.Projection p_69104_)
SinglePoolElement(StructureTemplate p_69106_)
-
Method Summary
Modifier and TypeMethodDescriptionprivate static <T> com.mojang.serialization.DataResult<T>
encodeTemplate(com.mojang.datafixers.util.Either<ResourceLocation,StructureTemplate> p_69114_, com.mojang.serialization.DynamicOps<T> p_69115_, T p_69116_)
getBoundingBox(StructureManager p_69133_, BlockPos p_69134_, Rotation p_69135_)
getDataMarkers(StructureManager p_69142_, BlockPos p_69143_, Rotation p_69144_, boolean p_69145_)
protected StructurePlaceSettings
getSettings(Rotation p_69108_, BoundingBox p_69109_, boolean p_69110_)
getShuffledJigsawBlocks(StructureManager p_69137_, BlockPos p_69138_, Rotation p_69139_, Random p_69140_)
getSize(StructureManager p_161664_, Rotation p_161665_)
private StructureTemplate
getTemplate(StructureManager p_69120_)
getType()
boolean
place(StructureManager p_69122_, WorldGenLevel p_69123_, StructureFeatureManager p_69124_, ChunkGenerator p_69125_, BlockPos p_69126_, BlockPos p_69127_, Rotation p_69128_, BoundingBox p_69129_, Random p_69130_, boolean p_69131_)
protected static <E extends SinglePoolElement>
com.mojang.serialization.codecs.RecordCodecBuilder<E,Supplier<StructureProcessorList>>protected static <E extends SinglePoolElement>
com.mojang.serialization.codecs.RecordCodecBuilder<E,com.mojang.datafixers.util.Either<ResourceLocation,StructureTemplate>>toString()
Methods inherited from class net.minecraft.world.level.levelgen.feature.structures.StructurePoolElement
empty, feature, getGroundLevelDelta, getProjection, handleDataMarker, legacy, legacy, list, projectionCodec, setProjection, single, single
-
Field Details
-
TEMPLATE_CODEC
private static final com.mojang.serialization.Codec<com.mojang.datafixers.util.Either<ResourceLocation,StructureTemplate>> TEMPLATE_CODEC -
CODEC
-
template
-
processors
-
-
Constructor Details
-
SinglePoolElement
protected SinglePoolElement(com.mojang.datafixers.util.Either<ResourceLocation,StructureTemplate> p_69102_, Supplier<StructureProcessorList> p_69103_, StructureTemplatePool.Projection p_69104_) -
SinglePoolElement
-
-
Method Details
-
encodeTemplate
private static <T> com.mojang.serialization.DataResult<T> encodeTemplate(com.mojang.datafixers.util.Either<ResourceLocation,StructureTemplate> p_69114_, com.mojang.serialization.DynamicOps<T> p_69115_, T p_69116_) -
processorsCodec
protected static <E extends SinglePoolElement> com.mojang.serialization.codecs.RecordCodecBuilder<E,Supplier<StructureProcessorList>> processorsCodec() -
templateCodec
protected static <E extends SinglePoolElement> com.mojang.serialization.codecs.RecordCodecBuilder<E,com.mojang.datafixers.util.Either<ResourceLocation,StructureTemplate>> templateCodec() -
getSize
- Specified by:
getSize
in classStructurePoolElement
-
getTemplate
-
getDataMarkers
public List<StructureTemplate.StructureBlockInfo> getDataMarkers(StructureManager p_69142_, BlockPos p_69143_, Rotation p_69144_, boolean p_69145_) -
getShuffledJigsawBlocks
public List<StructureTemplate.StructureBlockInfo> getShuffledJigsawBlocks(StructureManager p_69137_, BlockPos p_69138_, Rotation p_69139_, Random p_69140_)- Specified by:
getShuffledJigsawBlocks
in classStructurePoolElement
-
getBoundingBox
- Specified by:
getBoundingBox
in classStructurePoolElement
-
place
public boolean place(StructureManager p_69122_, WorldGenLevel p_69123_, StructureFeatureManager p_69124_, ChunkGenerator p_69125_, BlockPos p_69126_, BlockPos p_69127_, Rotation p_69128_, BoundingBox p_69129_, Random p_69130_, boolean p_69131_)- Specified by:
place
in classStructurePoolElement
-
getSettings
protected StructurePlaceSettings getSettings(Rotation p_69108_, BoundingBox p_69109_, boolean p_69110_) -
getType
- Specified by:
getType
in classStructurePoolElement
-
toString
-