Klasse GeneratorConfiguration.StructureInfo

java.lang.Object
de.freesoccerhdx.advancedworldcreatorapi.GeneratorConfiguration.StructureInfo
Umschließende Klasse:
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
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    StructureInfo(int spacing, int separation, int salt)
    Generates a simple Object that holds Information about how often Structes can spawn in the World
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    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

    Von Klasse geerbte Methoden java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • 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
      Parameter:
      spacing - See setSpacing(int)
      separation - See setSeparation(int)
      salt - See setSalt(int)
  • Methodendetails

    • getSalt

      public int getSalt()
      Gets the settings about the Salt of the Structure
      Gibt zurück:
      The Salt of the Structure
    • getSeparation

      public int getSeparation()
      Gets the settings about the Seperation of the Structure
      Gibt zurück:
      The Seperation of the Structure
    • getSpacing

      public int getSpacing()
      Gets the settings about the Salt of the Structure
      Gibt zurück:
      The Salt of the Structure
    • setSalt

      public void setSalt(int salt)
      Sets the salt for the Structure A number that assists in randomization
      Parameter:
      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.
      Parameter:
      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
      Parameter:
      spacing - The spacing to use