Skip to content

Commit

Permalink
Javadoc!
Browse files Browse the repository at this point in the history
  • Loading branch information
strubium committed May 10, 2024
1 parent 6ddb028 commit c9effcf
Showing 1 changed file with 25 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,11 @@ public LostCitiesTerrainGenerator(LostCityChunkGenerator provider) {
cavernTerrainGenerator.setup(provider.worldObj, provider);
spaceTerrainGenerator.setup(provider.worldObj, provider);
}


/**
* Generates a random leaf character.
* @return a random leaf character
*/
public static char getRandomLeaf() {
if (randomLeafs == null) {
randomLeafs = new char[128];
Expand All @@ -113,6 +117,10 @@ public static char getRandomLeaf() {
return randomLeafs[fastrand128()];
}

/**
* Gets the set of rail characters.
* @return a set of rail characters
*/
public static Set<Character> getRailChars() {
if (railChars == null) {
railChars = new HashSet<>();
Expand All @@ -122,6 +130,10 @@ public static Set<Character> getRailChars() {
return railChars;
}

/**
* Gets the set of glass characters.
* @return a set of glass characters
*/
public static Set<Character> getGlassChars() {
if (glassChars == null) {
glassChars = new HashSet<>();
Expand All @@ -133,6 +145,10 @@ public static Set<Character> getGlassChars() {
return glassChars;
}

/**
* Gets the set of characters needing todo.
* @return a set of characters needing todo
*/
public static Set<Character> getCharactersNeedingTodo() {
if (charactersNeedingTodo == null) {
charactersNeedingTodo = new HashSet<>();
Expand All @@ -148,6 +164,10 @@ public static Set<Character> getCharactersNeedingTodo() {
return charactersNeedingTodo;
}

/**
* Gets the set of characters needing lighting update.
* @return a set of characters needing lighting update
*/
public static Set<Character> getCharactersNeedingLightingUpdate() {
if (charactersNeedingLightingUpdate == null) {
charactersNeedingLightingUpdate = new HashSet<>();
Expand All @@ -161,6 +181,10 @@ public static Set<Character> getCharactersNeedingLightingUpdate() {
return charactersNeedingLightingUpdate;
}

/**
* Gets the set of rotatable characters.
* @return a set of rotatable characters
*/
public static Set<Character> getRotatableChars() {
if (rotatableChars == null) {
rotatableChars = new HashSet<>();
Expand Down

0 comments on commit c9effcf

Please sign in to comment.