Class SinglePoolElement
java.lang.Object
net.minecraft.world.level.levelgen.structure.pools.StructurePoolElement
net.minecraft.world.level.levelgen.structure.pools.SinglePoolElement
- Direct Known Subclasses:
LegacySinglePoolElement
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SinglePoolElement>
protected final Holder<StructureProcessorList>
protected final com.mojang.datafixers.util.Either<ResourceLocation,
StructureTemplate> private static final com.mojang.serialization.Codec<com.mojang.datafixers.util.Either<ResourceLocation,
StructureTemplate>> -
Constructor Summary
ModifierConstructorDescriptionprotected
SinglePoolElement
(com.mojang.datafixers.util.Either<ResourceLocation, StructureTemplate> p_210415_, Holder<StructureProcessorList> p_210416_, StructureTemplatePool.Projection p_210417_) SinglePoolElement
(StructureTemplate p_210419_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static <T> com.mojang.serialization.DataResult<T>
encodeTemplate
(com.mojang.datafixers.util.Either<ResourceLocation, StructureTemplate> p_210425_, com.mojang.serialization.DynamicOps<T> p_210426_, T p_210427_) getBoundingBox
(StructureManager p_210449_, BlockPos p_210450_, Rotation p_210451_) getDataMarkers
(StructureManager p_210458_, BlockPos p_210459_, Rotation p_210460_, boolean p_210461_) protected StructurePlaceSettings
getSettings
(Rotation p_210421_, BoundingBox p_210422_, boolean p_210423_) getShuffledJigsawBlocks
(StructureManager p_210453_, BlockPos p_210454_, Rotation p_210455_, Random p_210456_) getSize
(StructureManager p_210446_, Rotation p_210447_) private StructureTemplate
getTemplate
(StructureManager p_210433_) getType()
boolean
place
(StructureManager p_210435_, WorldGenLevel p_210436_, StructureFeatureManager p_210437_, ChunkGenerator p_210438_, BlockPos p_210439_, BlockPos p_210440_, Rotation p_210441_, BoundingBox p_210442_, Random p_210443_, boolean p_210444_) protected static <E extends SinglePoolElement>
com.mojang.serialization.codecs.RecordCodecBuilder<E,Holder<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.structure.pools.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_210415_, Holder<StructureProcessorList> p_210416_, StructureTemplatePool.Projection p_210417_) -
SinglePoolElement
-
-
Method Details
-
encodeTemplate
private static <T> com.mojang.serialization.DataResult<T> encodeTemplate(com.mojang.datafixers.util.Either<ResourceLocation, StructureTemplate> p_210425_, com.mojang.serialization.DynamicOps<T> p_210426_, T p_210427_) -
processorsCodec
protected static <E extends SinglePoolElement> com.mojang.serialization.codecs.RecordCodecBuilder<E,Holder<StructureProcessorList>> processorsCodec() -
templateCodec
protected static <E extends SinglePoolElement> com.mojang.serialization.codecs.RecordCodecBuilder<E,com.mojang.datafixers.util.Either<ResourceLocation, templateCodec()StructureTemplate>> -
getSize
- Specified by:
getSize
in classStructurePoolElement
-
getTemplate
-
getDataMarkers
public List<StructureTemplate.StructureBlockInfo> getDataMarkers(StructureManager p_210458_, BlockPos p_210459_, Rotation p_210460_, boolean p_210461_) -
getShuffledJigsawBlocks
public List<StructureTemplate.StructureBlockInfo> getShuffledJigsawBlocks(StructureManager p_210453_, BlockPos p_210454_, Rotation p_210455_, Random p_210456_) - Specified by:
getShuffledJigsawBlocks
in classStructurePoolElement
-
getBoundingBox
public BoundingBox getBoundingBox(StructureManager p_210449_, BlockPos p_210450_, Rotation p_210451_) - Specified by:
getBoundingBox
in classStructurePoolElement
-
place
public boolean place(StructureManager p_210435_, WorldGenLevel p_210436_, StructureFeatureManager p_210437_, ChunkGenerator p_210438_, BlockPos p_210439_, BlockPos p_210440_, Rotation p_210441_, BoundingBox p_210442_, Random p_210443_, boolean p_210444_) - Specified by:
place
in classStructurePoolElement
-
getSettings
protected StructurePlaceSettings getSettings(Rotation p_210421_, BoundingBox p_210422_, boolean p_210423_) -
getType
- Specified by:
getType
in classStructurePoolElement
-
toString
-