Class StructurePoolElement
java.lang.Object
net.minecraft.world.level.levelgen.feature.structures.StructurePoolElement
- Direct Known Subclasses:
EmptyPoolElement
,FeaturePoolElement
,ListPoolElement
,SinglePoolElement
-
Field Summary
Modifier and TypeFieldDescriptionstatic com.mojang.serialization.Codec<StructurePoolElement>
private StructureTemplatePool.Projection
-
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionempty()
feature(ConfiguredFeature<?,?> p_69165_)
abstract BoundingBox
getBoundingBox(StructureManager p_69183_, BlockPos p_69184_, Rotation p_69185_)
int
abstract List<StructureTemplate.StructureBlockInfo>
getShuffledJigsawBlocks(StructureManager p_69186_, BlockPos p_69187_, Rotation p_69188_, Random p_69189_)
abstract Vec3i
getSize(StructureManager p_161669_, Rotation p_161670_)
abstract StructurePoolElementType<?>
getType()
void
handleDataMarker(LevelAccessor p_69158_, StructureTemplate.StructureBlockInfo p_69159_, BlockPos p_69160_, Rotation p_69161_, Random p_69162_, BoundingBox p_69163_)
legacy(String p_69198_, StructureProcessorList p_69199_)
list(List<Function<StructureTemplatePool.Projection,? extends StructurePoolElement>> p_69205_)
abstract boolean
place(StructureManager p_69173_, WorldGenLevel p_69174_, StructureFeatureManager p_69175_, ChunkGenerator p_69176_, BlockPos p_69177_, BlockPos p_69178_, Rotation p_69179_, BoundingBox p_69180_, Random p_69181_, boolean p_69182_)
protected static <E extends StructurePoolElement>
com.mojang.serialization.codecs.RecordCodecBuilder<E,StructureTemplatePool.Projection>setProjection(StructureTemplatePool.Projection p_69169_)
single(String p_69222_, StructureProcessorList p_69223_)
-
Field Details
-
CODEC
-
projection
-
-
Constructor Details
-
StructurePoolElement
-
-
Method Details
-
projectionCodec
protected static <E extends StructurePoolElement> com.mojang.serialization.codecs.RecordCodecBuilder<E,StructureTemplatePool.Projection> projectionCodec() -
getSize
-
getShuffledJigsawBlocks
public abstract List<StructureTemplate.StructureBlockInfo> getShuffledJigsawBlocks(StructureManager p_69186_, BlockPos p_69187_, Rotation p_69188_, Random p_69189_) -
getBoundingBox
public abstract BoundingBox getBoundingBox(StructureManager p_69183_, BlockPos p_69184_, Rotation p_69185_) -
place
public abstract boolean place(StructureManager p_69173_, WorldGenLevel p_69174_, StructureFeatureManager p_69175_, ChunkGenerator p_69176_, BlockPos p_69177_, BlockPos p_69178_, Rotation p_69179_, BoundingBox p_69180_, Random p_69181_, boolean p_69182_) -
getType
-
handleDataMarker
public void handleDataMarker(LevelAccessor p_69158_, StructureTemplate.StructureBlockInfo p_69159_, BlockPos p_69160_, Rotation p_69161_, Random p_69162_, BoundingBox p_69163_) -
setProjection
-
getProjection
-
getGroundLevelDelta
public int getGroundLevelDelta() -
empty
-
legacy
public static Function<StructureTemplatePool.Projection,LegacySinglePoolElement> legacy(String p_69193_) -
legacy
public static Function<StructureTemplatePool.Projection,LegacySinglePoolElement> legacy(String p_69198_, StructureProcessorList p_69199_) -
single
public static Function<StructureTemplatePool.Projection,SinglePoolElement> single(String p_69217_) -
single
public static Function<StructureTemplatePool.Projection,SinglePoolElement> single(String p_69222_, StructureProcessorList p_69223_) -
feature
public static Function<StructureTemplatePool.Projection,FeaturePoolElement> feature(ConfiguredFeature<?,?> p_69165_) -
list
public static Function<StructureTemplatePool.Projection,ListPoolElement> list(List<Function<StructureTemplatePool.Projection,? extends StructurePoolElement>> p_69205_)
-