Skip to content

Commit

Permalink
Added getter for the island creation algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
OmerBenGera committed May 7, 2022
1 parent c2ae294 commit 68e3a4f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Expand Up @@ -65,6 +65,11 @@ void createIsland(SuperiorPlayer superiorPlayer, String schemName, BigDecimal bo
*/
void setIslandCreationAlgorithm(@Nullable IslandCreationAlgorithm islandCreationAlgorithm);

/**
* Get the currently used island creation algorithm.
*/
IslandCreationAlgorithm getIslandCreationAlgorithm();

/**
* Checks if a player has an active request for creating an island.
*
Expand Down
Expand Up @@ -224,6 +224,11 @@ public void setIslandCreationAlgorithm(@Nullable IslandCreationAlgorithm islandC
DefaultIslandCreationAlgorithm.getInstance();
}

@Override
public IslandCreationAlgorithm getIslandCreationAlgorithm() {
return this.islandCreationAlgorithm;
}

@Override
public boolean hasActiveCreateRequest(SuperiorPlayer superiorPlayer) {
Preconditions.checkNotNull(superiorPlayer, "superiorPlayer parameter cannot be null.");
Expand Down

0 comments on commit 68e3a4f

Please sign in to comment.