Klasse GeneratorConfiguration.StructureInfo
java.lang.Object
de.freesoccerhdx.advancedworldcreatorapi.GeneratorConfiguration.StructureInfo
- Umschließende Klasse:
GeneratorConfiguration
Represents the Information for the Structures that can spawn in the World
Holds Information about how often the Structures can spawn
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungStructureInfo
(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 TypMethodeBeschreibungint
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
-
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
- SeesetSpacing(int)
separation
- SeesetSeparation(int)
salt
- SeesetSalt(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
-