Package net.dzikoysk.funnyguilds.rank
Class Rank<T extends MutableEntity>
java.lang.Object
net.dzikoysk.funnyguilds.rank.Rank<T>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcompareName(Rank<?> o1, Rank<?> o2) booleanabstract intabstract intabstract floatgetKDA()abstract floatgetKDR()abstract intgetKills()abstract intabstract intintgetPosition(String top) getType()inthashCode()voidsetPosition(String top, int position) You should not use this method since this value will be overwritten in the next top recalculation It's only for internal use (or when you added your own top from your plugin)toString()
-
Field Details
-
entity
-
position
-
-
Constructor Details
-
Rank
-
-
Method Details
-
getEntity
-
getType
-
getIdentityName
-
getPosition
- Parameters:
top- the id of the top - you can useDefaultTopsto get ids of default built-in tops- Returns:
- position in which entity is for the given top, return 0 if entity is not in the top
-
setPosition
You should not use this method since this value will be overwritten in the next top recalculation It's only for internal use (or when you added your own top from your plugin) -
getPoints
public abstract int getPoints() -
getKills
public abstract int getKills() -
getDeaths
public abstract int getDeaths() -
getAssists
public abstract int getAssists() -
getLogouts
public abstract int getLogouts() -
getKDR
public abstract float getKDR() -
getKDA
public abstract float getKDA() -
equals
-
hashCode
public int hashCode() -
toString
-
compareName
-