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.MapCodec<FeaturePoolElement> private final CompoundTagprivate final Holder<PlacedFeature> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFeaturePoolElement(Holder<PlacedFeature> feature, StructureTemplatePool.Projection projection) -
Method Summary
Modifier and TypeMethodDescriptionprivate CompoundTaggetBoundingBox(StructureTemplateManager structureTemplateManager, BlockPos pos, Rotation rotation) getShuffledJigsawBlocks(StructureTemplateManager structureTemplateManager, BlockPos pos, Rotation rotation, RandomSource random) getSize(StructureTemplateManager structureTemplateManager, Rotation rotation) getType()booleanplace(StructureTemplateManager structureTemplateManager, WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, BlockPos offset, BlockPos pos, Rotation rotation, BoundingBox box, RandomSource random, LiquidSettings liquidSettings, boolean keepJigsaws) 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, single, single
-
Field Details
-
CODEC
-
feature
-
defaultJigsawNBT
-
-
Constructor Details
-
FeaturePoolElement
protected FeaturePoolElement(Holder<PlacedFeature> feature, StructureTemplatePool.Projection projection)
-
-
Method Details
-
fillDefaultJigsawNBT
-
getSize
- Specified by:
getSizein classStructurePoolElement
-
getShuffledJigsawBlocks
public List<StructureTemplate.StructureBlockInfo> getShuffledJigsawBlocks(StructureTemplateManager structureTemplateManager, BlockPos pos, Rotation rotation, RandomSource random) - Specified by:
getShuffledJigsawBlocksin classStructurePoolElement
-
getBoundingBox
public BoundingBox getBoundingBox(StructureTemplateManager structureTemplateManager, BlockPos pos, Rotation rotation) - Specified by:
getBoundingBoxin classStructurePoolElement
-
place
public boolean place(StructureTemplateManager structureTemplateManager, WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, BlockPos offset, BlockPos pos, Rotation rotation, BoundingBox box, RandomSource random, LiquidSettings liquidSettings, boolean keepJigsaws) - Specified by:
placein classStructurePoolElement
-
getType
- Specified by:
getTypein classStructurePoolElement
-
toString
-