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
(StructureManager p_210231_, BlockPos p_210232_, Rotation p_210233_) getShuffledJigsawBlocks
(StructureManager p_210235_, BlockPos p_210236_, Rotation p_210237_, Random p_210238_) getSize
(StructureManager p_210228_, Rotation p_210229_) getType()
boolean
place
(StructureManager p_210217_, WorldGenLevel p_210218_, StructureFeatureManager p_210219_, ChunkGenerator p_210220_, BlockPos p_210221_, BlockPos p_210222_, Rotation p_210223_, BoundingBox p_210224_, Random p_210225_, boolean p_210226_) 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(StructureManager p_210235_, BlockPos p_210236_, Rotation p_210237_, Random p_210238_) - Specified by:
getShuffledJigsawBlocks
in classStructurePoolElement
-
getBoundingBox
public BoundingBox getBoundingBox(StructureManager p_210231_, BlockPos p_210232_, Rotation p_210233_) - Specified by:
getBoundingBox
in classStructurePoolElement
-
place
public boolean place(StructureManager p_210217_, WorldGenLevel p_210218_, StructureFeatureManager p_210219_, ChunkGenerator p_210220_, BlockPos p_210221_, BlockPos p_210222_, Rotation p_210223_, BoundingBox p_210224_, Random p_210225_, boolean p_210226_) - Specified by:
place
in classStructurePoolElement
-
getType
- Specified by:
getType
in classStructurePoolElement
-
toString
-