Class GeneratorConfiguration.StructureInfo
java.lang.Object
de.freesoccerhdx.advancedworldcreatorapi.GeneratorConfiguration.StructureInfo
- Enclosing class:
- GeneratorConfiguration
Represents the Information for the Structures that can spawn in the World
Holds Information about how often the Structures can spawn
-
Constructor Summary
ConstructorDescriptionStructureInfo
(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 TypeMethodDescriptionint
getSalt()
Gets the settings about the Salt of the Structureint
Gets the settings about the Seperation of the Structureint
Gets the settings about the Salt of the Structurevoid
setSalt
(int salt) Sets the salt for the Structure A number that assists in randomizationvoid
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
-
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
- SeesetSalt(int)
separation
- SeesetSeparation(int)
spacing
- SeesetSpacing(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
-