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 StructureTemplatePool.Projection
-
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionempty()
feature
(Holder<PlacedFeature> p_210503_) abstract BoundingBox
getBoundingBox
(StructureManager p_210495_, BlockPos p_210496_, Rotation p_210497_) int
abstract List<StructureTemplate.StructureBlockInfo>
getShuffledJigsawBlocks
(StructureManager p_210498_, BlockPos p_210499_, Rotation p_210500_, Random p_210501_) abstract Vec3i
getSize
(StructureManager p_210493_, Rotation p_210494_) abstract StructurePoolElementType<?>
getType()
void
handleDataMarker
(LevelAccessor p_210473_, StructureTemplate.StructureBlockInfo p_210474_, BlockPos p_210475_, Rotation p_210476_, Random p_210477_, BoundingBox p_210478_) legacy
(String p_210513_, Holder<StructureProcessorList> p_210514_) list
(List<Function<StructureTemplatePool.Projection, ? extends StructurePoolElement>> p_210520_) abstract boolean
place
(StructureManager p_210483_, WorldGenLevel p_210484_, StructureFeatureManager p_210485_, ChunkGenerator p_210486_, BlockPos p_210487_, BlockPos p_210488_, Rotation p_210489_, BoundingBox p_210490_, Random p_210491_, boolean p_210492_) 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
-
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_210498_, BlockPos p_210499_, Rotation p_210500_, Random p_210501_) -
getBoundingBox
public abstract BoundingBox getBoundingBox(StructureManager p_210495_, BlockPos p_210496_, Rotation p_210497_) -
place
public abstract boolean place(StructureManager p_210483_, WorldGenLevel p_210484_, StructureFeatureManager p_210485_, ChunkGenerator p_210486_, BlockPos p_210487_, BlockPos p_210488_, Rotation p_210489_, BoundingBox p_210490_, Random p_210491_, boolean p_210492_) -
getType
-
handleDataMarker
public void handleDataMarker(LevelAccessor p_210473_, StructureTemplate.StructureBlockInfo p_210474_, BlockPos p_210475_, Rotation p_210476_, Random p_210477_, BoundingBox p_210478_) -
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_)
-