Package us.talabrek.ultimateskyblock.api
Class IslandLevel
java.lang.Object
us.talabrek.ultimateskyblock.api.IslandLevel
- All Implemented Interfaces:
Comparable<IslandLevel>
- Direct Known Subclasses:
IslandRank
Simple Immutable POJO for holding the island level.
- Since:
- v2.1.0
-
Constructor Summary
ConstructorDescriptionIslandLevel
(String islandName, String leaderName, List<String> members, double score) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
Returns a logical name of the island on the formx,y
Returns the display-name of the island-leader.Returns a comma-separated list of members, with parenthesis around, or the empty string.double
getScore()
Returns the score of the island.int
hashCode()
-
Constructor Details
-
IslandLevel
-
-
Method Details
-
getIslandName
Returns a logical name of the island on the formx,y
- Returns:
- the name of the island.
-
getLeaderName
Returns the display-name of the island-leader. I.e.§9[Own]§f R4zorax
- Returns:
- the display-name of the island-leader.
-
getMembers
Returns a comma-separated list of members, with parenthesis around, or the empty string. I.e.(R4zorax, dutchy1001)
- Returns:
- a comma-separated list of members, with parenthesis around, or the empty string.
- Since:
- v2.1.1
-
getScore
public double getScore()Returns the score of the island. Each block within the island contributes to the score. But with varying weights (i.e. cobble has a cut-off at 10000 blocks).- Returns:
- the score of the island.
-
compareTo
- Specified by:
compareTo
in interfaceComparable<IslandLevel>
-
equals
-
hashCode
public int hashCode()
-