Interface FabricStructurePool


public interface FabricStructurePool
Represents a modifiable structure pool that has several helper methods for modders.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addStructurePoolElement(net.minecraft.structure.pool.StructurePoolElement element)
    Adds a new StructurePoolElement to the StructurePool.
    void
    addStructurePoolElement(net.minecraft.structure.pool.StructurePoolElement element, int weight)
    Adds a new StructurePoolElement to the StructurePool.
    default net.minecraft.util.Identifier
    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 new StructurePoolElement to the StructurePool. See the alternative addStructurePoolElement(StructurePoolElement, int) for details.
      Parameters:
      element - the element to add
    • addStructurePoolElement

      void addStructurePoolElement(net.minecraft.structure.pool.StructurePoolElement element, int weight)
      Adds a new StructurePoolElement to the StructurePool. 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 add
      weight - 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.