Class GeneratorConfiguration.StructureInfo

java.lang.Object
de.freesoccerhdx.advancedworldcreatorapi.GeneratorConfiguration.StructureInfo
Enclosing class:
GeneratorConfiguration

public static class GeneratorConfiguration.StructureInfo extends Object
Represents the Information for the Structures that can spawn in the World Holds Information about how often the Structures can spawn
  • Constructor Summary

    Constructors
    Constructor
    Description
    StructureInfo(int spacing, int separation, int salt)
    Generates a simple Object that holds Information about how often Structes can spawn in the World
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the settings about the Salt of the Structure
    int
    Gets the settings about the Seperation of the Structure
    int
    Gets the settings about the Salt of the Structure
    void
    setSalt(int salt)
    Sets the salt for the Structure A number that assists in randomization
    void
    setSeparation(int separation)
    Sets the minimum distance between two structures of this type in chunks.
    void
    setSpacing(int spacing)
    Sets the average distance between two structure placement attempts of this type in chunks

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StructureInfo

      public StructureInfo(int spacing, int separation, int salt)
      Generates a simple Object that holds Information about how often Structes can spawn in the World
      Parameters:
      salt - See setSalt(int)
      separation - See setSeparation(int)
      spacing - See setSpacing(int)
  • Method Details

    • getSalt

      public int getSalt()
      Gets the settings about the Salt of the Structure
      Returns:
      The Salt of the Structure
    • getSeparation

      public int getSeparation()
      Gets the settings about the Seperation of the Structure
      Returns:
      The Seperation of the Structure
    • getSpacing

      public int getSpacing()
      Gets the settings about the Salt of the Structure
      Returns:
      The Salt of the Structure
    • setSalt

      public void setSalt(int salt)
      Sets the salt for the Structure A number that assists in randomization
      Parameters:
      salt - The salt to use
    • setSeparation

      public void setSeparation(int separation)
      Sets the minimum distance between two structures of this type in chunks. Must be less than spacing.
      Parameters:
      separation - The separation to use
    • setSpacing

      public void setSpacing(int spacing)
      Sets the average distance between two structure placement attempts of this type in chunks
      Parameters:
      spacing - The spacing to use