Interface FabricStructurePool
public interface FabricStructurePool
Represents a modifiable structure pool that has several helper methods for modders.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddStructurePoolElement(net.minecraft.structure.pool.StructurePoolElement element) Adds a newStructurePoolElementto theStructurePool.voidaddStructurePoolElement(net.minecraft.structure.pool.StructurePoolElement element, int weight) Adds a newStructurePoolElementto theStructurePool.default net.minecraft.util.IdentifiergetId()Gets the identifier for the pool.net.minecraft.structure.pool.StructurePoolGets the underlying structure pool.
-
Method Details
-
addStructurePoolElement
void addStructurePoolElement(net.minecraft.structure.pool.StructurePoolElement element) Adds a newStructurePoolElementto theStructurePool. See the alternativeaddStructurePoolElement(StructurePoolElement, int)for details.- Parameters:
element- the element to add
-
addStructurePoolElement
void addStructurePoolElement(net.minecraft.structure.pool.StructurePoolElement element, int weight) Adds a newStructurePoolElementto theStructurePool. Its weight determines the amount of times an element is added to a list used for sampling during structure generation.- Parameters:
element- the element to addweight- the weight of the element
-
getUnderlyingPool
net.minecraft.structure.pool.StructurePool getUnderlyingPool()Gets the underlying structure pool. -
getId
default net.minecraft.util.Identifier getId()Gets the identifier for the pool.
-