Class PoolExtension
java.lang.Object
org.moddingx.libx.sandbox.structure.PoolExtension
Specifies an extension to a
template pool
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<net.minecraft.core.Holder<PoolExtension>>
static final com.mojang.serialization.Codec<PoolExtension>
-
Constructor Summary
ConstructorDescriptionPoolExtension
(net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.structure.pools.StructureTemplatePool> pool, boolean required, List<com.mojang.datafixers.util.Pair<net.minecraft.world.level.levelgen.structure.pools.StructurePoolElement, Integer>> elements) PoolExtension
(net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.structure.pools.StructureTemplatePool> pool, List<com.mojang.datafixers.util.Pair<net.minecraft.world.level.levelgen.structure.pools.StructurePoolElement, Integer>> elements) -
Method Summary
Modifier and TypeMethodDescriptionList<com.mojang.datafixers.util.Pair<net.minecraft.world.level.levelgen.structure.pools.StructurePoolElement,
Integer>> elements()
Gets the list ofelements
and weights to extend thetemplate pool
.net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.structure.pools.StructureTemplatePool>
pool()
Gets the pool id to extend.boolean
required()
Gets whether the extension is required.
-
Field Details
-
DIRECT_CODEC
-
CODEC
-
-
Constructor Details
-
PoolExtension
-
PoolExtension
-
-
Method Details
-
pool
public net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.structure.pools.StructureTemplatePool> pool()Gets the pool id to extend. -
required
public boolean required()Gets whether the extension is required. Required extensions will throw an exception if the target pool does not exist. -
elements
public List<com.mojang.datafixers.util.Pair<net.minecraft.world.level.levelgen.structure.pools.StructurePoolElement,Integer>> elements()Gets the list ofelements
and weights to extend thetemplate pool
.
-