Class Rank<T extends MutableEntity>

java.lang.Object
net.dzikoysk.funnyguilds.rank.Rank<T>
Direct Known Subclasses:
GuildRank, UserRank

public abstract class Rank<T extends MutableEntity> extends Object
  • Field Details

  • Constructor Details

    • Rank

      protected Rank(T entity)
  • Method Details

    • getEntity

      public MutableEntity getEntity()
    • getType

      public Entity.EntityType getType()
    • getIdentityName

      public String getIdentityName()
    • getPosition

      public int getPosition(String top)
      Parameters:
      top - the id of the top - you can use DefaultTops to 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

      public void setPosition(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)
    • 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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareName

      public static int compareName(Rank<?> o1, Rank<?> o2)