Class FeaturePoolElement
java.lang.Object
net.minecraft.world.level.levelgen.structure.pools.StructurePoolElement
net.minecraft.world.level.levelgen.structure.pools.FeaturePoolElement
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<FeaturePoolElement>private final CompoundTagprivate final Holder<PlacedFeature> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFeaturePoolElement(Holder<PlacedFeature> p_210209_, StructureTemplatePool.Projection p_210210_) -
Method Summary
Modifier and TypeMethodDescriptionprivate CompoundTaggetBoundingBox(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()booleanplace(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:
getSizein classStructurePoolElement
-
getShuffledJigsawBlocks
public List<StructureTemplate.StructureBlockInfo> getShuffledJigsawBlocks(StructureManager p_210235_, BlockPos p_210236_, Rotation p_210237_, Random p_210238_) - Specified by:
getShuffledJigsawBlocksin classStructurePoolElement
-
getBoundingBox
public BoundingBox getBoundingBox(StructureManager p_210231_, BlockPos p_210232_, Rotation p_210233_) - Specified by:
getBoundingBoxin 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:
placein classStructurePoolElement
-
getType
- Specified by:
getTypein classStructurePoolElement
-
toString
-