Interface FabricStructurePool
public interface FabricStructurePool
Represents a modifiable structure pool that has several helper methods for modders.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addStructurePoolElement
(net.minecraft.structure.pool.StructurePoolElement element) Adds a newStructurePoolElement
to theStructurePool
.void
addStructurePoolElement
(net.minecraft.structure.pool.StructurePoolElement element, int weight) Adds a newStructurePoolElement
to theStructurePool
.default net.minecraft.util.Identifier
getId()
Gets the identifier for the pool.net.minecraft.structure.pool.StructurePool
Gets the underlying structure pool.
-
Method Details
-
addStructurePoolElement
void addStructurePoolElement(net.minecraft.structure.pool.StructurePoolElement element) Adds a newStructurePoolElement
to 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 newStructurePoolElement
to 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.
-