Class FeaturePoolElement
java.lang.Object
net.minecraft.world.level.levelgen.structure.pools.StructurePoolElement
net.minecraft.world.level.levelgen.structure.pools.FeaturePoolElement
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<FeaturePoolElement>
private final CompoundTag
private final Holder<PlacedFeature>
-
Constructor Summary
ModifierConstructorDescriptionprotected
FeaturePoolElement
(Holder<PlacedFeature> p_210209_, StructureTemplatePool.Projection p_210210_) -
Method Summary
Modifier and TypeMethodDescriptionprivate CompoundTag
getBoundingBox
(StructureTemplateManager p_227195_, BlockPos p_227196_, Rotation p_227197_) getShuffledJigsawBlocks
(StructureTemplateManager p_227199_, BlockPos p_227200_, Rotation p_227201_, RandomSource p_227202_) getSize
(StructureTemplateManager p_227192_, Rotation p_227193_) getType()
boolean
place
(StructureTemplateManager p_227181_, WorldGenLevel p_227182_, StructureManager p_227183_, ChunkGenerator p_227184_, BlockPos p_227185_, BlockPos p_227186_, Rotation p_227187_, BoundingBox p_227188_, RandomSource p_227189_, boolean p_227190_) 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
-
CODEC
-
feature
-
defaultJigsawNBT
-
-
Constructor Details
-
FeaturePoolElement
protected FeaturePoolElement(Holder<PlacedFeature> p_210209_, StructureTemplatePool.Projection p_210210_)
-
-
Method Details
-
fillDefaultJigsawNBT
-
getSize
- Specified by:
getSize
in classStructurePoolElement
-
getShuffledJigsawBlocks
public List<StructureTemplate.StructureBlockInfo> getShuffledJigsawBlocks(StructureTemplateManager p_227199_, BlockPos p_227200_, Rotation p_227201_, RandomSource p_227202_) - Specified by:
getShuffledJigsawBlocks
in classStructurePoolElement
-
getBoundingBox
public BoundingBox getBoundingBox(StructureTemplateManager p_227195_, BlockPos p_227196_, Rotation p_227197_) - Specified by:
getBoundingBox
in classStructurePoolElement
-
place
public boolean place(StructureTemplateManager p_227181_, WorldGenLevel p_227182_, StructureManager p_227183_, ChunkGenerator p_227184_, BlockPos p_227185_, BlockPos p_227186_, Rotation p_227187_, BoundingBox p_227188_, RandomSource p_227189_, boolean p_227190_) - Specified by:
place
in classStructurePoolElement
-
getType
- Specified by:
getType
in classStructurePoolElement
-
toString
-