Class StructurePoolElement
java.lang.Object
net.minecraft.world.level.levelgen.structure.pools.StructurePoolElement
- Direct Known Subclasses:
EmptyPoolElement
,FeaturePoolElement
,ListPoolElement
,SinglePoolElement
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<StructurePoolElement> private static final Holder
<StructureProcessorList> private StructureTemplatePool.Projection
-
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionempty()
feature
(Holder<PlacedFeature> p_210503_) abstract BoundingBox
getBoundingBox
(StructureTemplateManager p_227348_, BlockPos p_227349_, Rotation p_227350_) int
abstract List
<StructureTemplate.StructureBlockInfo> getShuffledJigsawBlocks
(StructureTemplateManager p_227351_, BlockPos p_227352_, Rotation p_227353_, RandomSource p_227354_) abstract Vec3i
getSize
(StructureTemplateManager p_227346_, Rotation p_227347_) abstract StructurePoolElementType
<?> getType()
void
handleDataMarker
(LevelAccessor p_227330_, StructureTemplate.StructureBlockInfo p_227331_, BlockPos p_227332_, Rotation p_227333_, RandomSource p_227334_, BoundingBox p_227335_) legacy
(String p_210513_, Holder<StructureProcessorList> p_210514_) list
(List<Function<StructureTemplatePool.Projection, ? extends StructurePoolElement>> p_210520_) abstract boolean
place
(StructureTemplateManager p_227336_, WorldGenLevel p_227337_, StructureManager p_227338_, ChunkGenerator p_227339_, BlockPos p_227340_, BlockPos p_227341_, Rotation p_227342_, BoundingBox p_227343_, RandomSource p_227344_, boolean p_227345_) protected static <E extends StructurePoolElement>
com.mojang.serialization.codecs.RecordCodecBuilder<E, StructureTemplatePool.Projection> setProjection
(StructureTemplatePool.Projection p_210479_) single
(String p_210532_, Holder<StructureProcessorList> p_210533_)
-
Field Details
-
CODEC
-
EMPTY
-
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(StructureTemplateManager p_227351_, BlockPos p_227352_, Rotation p_227353_, RandomSource p_227354_) -
getBoundingBox
public abstract BoundingBox getBoundingBox(StructureTemplateManager p_227348_, BlockPos p_227349_, Rotation p_227350_) -
place
public abstract boolean place(StructureTemplateManager p_227336_, WorldGenLevel p_227337_, StructureManager p_227338_, ChunkGenerator p_227339_, BlockPos p_227340_, BlockPos p_227341_, Rotation p_227342_, BoundingBox p_227343_, RandomSource p_227344_, boolean p_227345_) -
getType
-
handleDataMarker
public void handleDataMarker(LevelAccessor p_227330_, StructureTemplate.StructureBlockInfo p_227331_, BlockPos p_227332_, Rotation p_227333_, RandomSource p_227334_, BoundingBox p_227335_) -
setProjection
-
getProjection
-
getGroundLevelDelta
public int getGroundLevelDelta() -
empty
-
legacy
public static Function<StructureTemplatePool.Projection,LegacySinglePoolElement> legacy(String p_210508_) -
legacy
public static Function<StructureTemplatePool.Projection,LegacySinglePoolElement> legacy(String p_210513_, Holder<StructureProcessorList> p_210514_) -
single
-
single
public static Function<StructureTemplatePool.Projection,SinglePoolElement> single(String p_210532_, Holder<StructureProcessorList> p_210533_) -
feature
public static Function<StructureTemplatePool.Projection,FeaturePoolElement> feature(Holder<PlacedFeature> p_210503_) -
list
public static Function<StructureTemplatePool.Projection,ListPoolElement> list(List<Function<StructureTemplatePool.Projection, ? extends StructurePoolElement>> p_210520_)
-