Class StructureTemplatePool
java.lang.Object
net.minecraft.world.level.levelgen.structure.pools.StructureTemplatePool
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Holder<StructureTemplatePool>>
private static final org.apache.commons.lang3.mutable.MutableObject<com.mojang.serialization.Codec<Holder<StructureTemplatePool>>>
static final com.mojang.serialization.Codec<StructureTemplatePool>
private final Holder<StructureTemplatePool>
private int
private final List<com.mojang.datafixers.util.Pair<StructurePoolElement,
Integer>> private static final int
private final it.unimi.dsi.fastutil.objects.ObjectArrayList<StructurePoolElement>
-
Constructor Summary
ConstructorDescriptionStructureTemplatePool
(Holder<StructureTemplatePool> p_255795_, List<com.mojang.datafixers.util.Pair<Function<StructureTemplatePool.Projection, ? extends StructurePoolElement>, Integer>> p_256083_, StructureTemplatePool.Projection p_255642_) StructureTemplatePool
(Holder<StructureTemplatePool> p_255747_, List<com.mojang.datafixers.util.Pair<StructurePoolElement, Integer>> p_255919_) -
Method Summary
Modifier and TypeMethodDescriptionint
getMaxSize
(StructureTemplateManager p_227358_) getRandomTemplate
(RandomSource p_227356_) getShuffledTemplates
(RandomSource p_227363_) int
size()
-
Field Details
-
SIZE_UNSET
private static final int SIZE_UNSET- See Also:
-
CODEC_REFERENCE
private static final org.apache.commons.lang3.mutable.MutableObject<com.mojang.serialization.Codec<Holder<StructureTemplatePool>>> CODEC_REFERENCE -
DIRECT_CODEC
-
CODEC
-
rawTemplates
-
templates
-
fallback
-
maxSize
private int maxSize
-
-
Constructor Details
-
StructureTemplatePool
public StructureTemplatePool(Holder<StructureTemplatePool> p_255747_, List<com.mojang.datafixers.util.Pair<StructurePoolElement, Integer>> p_255919_) -
StructureTemplatePool
public StructureTemplatePool(Holder<StructureTemplatePool> p_255795_, List<com.mojang.datafixers.util.Pair<Function<StructureTemplatePool.Projection, ? extends StructurePoolElement>, Integer>> p_256083_, StructureTemplatePool.Projection p_255642_)
-
-
Method Details
-
getMaxSize
-
getFallback
-
getRandomTemplate
-
getShuffledTemplates
-
size
public int size()
-