Class FeaturePoolElement
java.lang.Object
net.minecraft.world.level.levelgen.feature.structures.StructurePoolElement
net.minecraft.world.level.levelgen.feature.structures.FeaturePoolElement
-
Field Summary
Modifier and TypeFieldDescriptionstatic com.mojang.serialization.Codec<FeaturePoolElement>
private CompoundTag
private Supplier<ConfiguredFeature<?,?>>
-
Constructor Summary
ModifierConstructorDescriptionprotected
FeaturePoolElement(Supplier<ConfiguredFeature<?,?>> p_68887_, StructureTemplatePool.Projection p_68888_)
-
Method Summary
Modifier and TypeMethodDescriptionprivate CompoundTag
getBoundingBox(StructureManager p_68909_, BlockPos p_68910_, Rotation p_68911_)
getShuffledJigsawBlocks(StructureManager p_68913_, BlockPos p_68914_, Rotation p_68915_, Random p_68916_)
getSize(StructureManager p_161607_, Rotation p_161608_)
getType()
boolean
place(StructureManager p_68895_, WorldGenLevel p_68896_, StructureFeatureManager p_68897_, ChunkGenerator p_68898_, BlockPos p_68899_, BlockPos p_68900_, Rotation p_68901_, BoundingBox p_68902_, Random p_68903_, boolean p_68904_)
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
-
CODEC
-
feature
-
defaultJigsawNBT
-
-
Constructor Details
-
FeaturePoolElement
protected FeaturePoolElement(Supplier<ConfiguredFeature<?,?>> p_68887_, StructureTemplatePool.Projection p_68888_)
-
-
Method Details
-
fillDefaultJigsawNBT
-
getSize
- Specified by:
getSize
in classStructurePoolElement
-
getShuffledJigsawBlocks
public List<StructureTemplate.StructureBlockInfo> getShuffledJigsawBlocks(StructureManager p_68913_, BlockPos p_68914_, Rotation p_68915_, Random p_68916_)- Specified by:
getShuffledJigsawBlocks
in classStructurePoolElement
-
getBoundingBox
- Specified by:
getBoundingBox
in classStructurePoolElement
-
place
public boolean place(StructureManager p_68895_, WorldGenLevel p_68896_, StructureFeatureManager p_68897_, ChunkGenerator p_68898_, BlockPos p_68899_, BlockPos p_68900_, Rotation p_68901_, BoundingBox p_68902_, Random p_68903_, boolean p_68904_)- Specified by:
place
in classStructurePoolElement
-
getType
- Specified by:
getType
in classStructurePoolElement
-
toString
-