Package net.minecraft.structure.pool
Class FeaturePoolElement
java.lang.Object
net.minecraft.structure.pool.StructurePoolElement
net.minecraft.structure.pool.FeaturePoolElement
public class FeaturePoolElement extends StructurePoolElement
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<FeaturePoolElement>CODECprivate Supplier<ConfiguredFeature<?,?>>featureprivate CompoundTagtag -
Constructor Summary
Constructors Modifier Constructor Description protectedFeaturePoolElement(Supplier<ConfiguredFeature<?,?>> feature, StructurePool.Projection projection) -
Method Summary
Modifier and Type Method Description private CompoundTagcreateDefaultJigsawTag()booleangenerate(StructureManager structureManager, StructureWorldAccess structureWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, BlockPos blockPos, BlockPos blockPos2, BlockRotation blockRotation, BlockBox blockBox, Random random, boolean keepJigsaws)BlockBoxgetBoundingBox(StructureManager structureManager, BlockPos pos, BlockRotation rotation)BlockPosgetStart(StructureManager structureManager, BlockRotation blockRotation)List<Structure.StructureBlockInfo>getStructureBlockInfos(StructureManager structureManager, BlockPos pos, BlockRotation rotation, Random random)StructurePoolElementType<?>getType()StringtoString()Methods inherited from class net.minecraft.structure.pool.StructurePoolElement
getGroundLevelDelta, getProjection, method_16756, method_28883, method_30421, method_30425, method_30426, method_30429, method_30434, method_30435, method_30438, setProjection
-
Field Details
-
CODEC
-
feature
-
tag
-
-
Constructor Details
-
FeaturePoolElement
protected FeaturePoolElement(Supplier<ConfiguredFeature<?,?>> feature, StructurePool.Projection projection)
-
-
Method Details
-
createDefaultJigsawTag
-
getStart
-
getStructureBlockInfos
public List<Structure.StructureBlockInfo> getStructureBlockInfos(StructureManager structureManager, BlockPos pos, BlockRotation rotation, Random random)- Specified by:
getStructureBlockInfosin classStructurePoolElement
-
getBoundingBox
public BlockBox getBoundingBox(StructureManager structureManager, BlockPos pos, BlockRotation rotation)- Specified by:
getBoundingBoxin classStructurePoolElement
-
generate
public boolean generate(StructureManager structureManager, StructureWorldAccess structureWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, BlockPos blockPos, BlockPos blockPos2, BlockRotation blockRotation, BlockBox blockBox, Random random, boolean keepJigsaws)- Specified by:
generatein classStructurePoolElement
-
getType
- Specified by:
getTypein classStructurePoolElement
-
toString
-