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>>
static final com.mojang.serialization.Codec<StructureTemplatePool>
private final ResourceLocation
private static final org.slf4j.Logger
private int
private final ResourceLocation
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
(ResourceLocation p_210569_, ResourceLocation p_210570_, List<com.mojang.datafixers.util.Pair<Function<StructureTemplatePool.Projection, ? extends StructurePoolElement>, Integer>> p_210571_, StructureTemplatePool.Projection p_210572_) StructureTemplatePool
(ResourceLocation p_210565_, ResourceLocation p_210566_, List<com.mojang.datafixers.util.Pair<StructurePoolElement, Integer>> p_210567_) -
Method Summary
Modifier and TypeMethodDescriptionint
getMaxSize
(StructureTemplateManager p_227358_) getName()
getRandomTemplate
(RandomSource p_227356_) getShuffledTemplates
(RandomSource p_227363_) int
size()
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
SIZE_UNSET
private static final int SIZE_UNSET- See Also:
-
DIRECT_CODEC
-
CODEC
-
name
-
rawTemplates
-
templates
-
fallback
-
maxSize
private int maxSize
-
-
Constructor Details
-
StructureTemplatePool
public StructureTemplatePool(ResourceLocation p_210565_, ResourceLocation p_210566_, List<com.mojang.datafixers.util.Pair<StructurePoolElement, Integer>> p_210567_) -
StructureTemplatePool
public StructureTemplatePool(ResourceLocation p_210569_, ResourceLocation p_210570_, List<com.mojang.datafixers.util.Pair<Function<StructureTemplatePool.Projection, ? extends StructurePoolElement>, Integer>> p_210571_, StructureTemplatePool.Projection p_210572_)
-
-
Method Details
-
getMaxSize
-
getFallback
-
getRandomTemplate
-
getShuffledTemplates
-
getName
-
size
public int size()
-