Class UpdateTask

java.lang.Object
cn.nukkit.scheduler.Task
cn.nukkit.scheduler.PluginTask<GameCore>
cn.lanink.gamecore.ranking.task.UpdateTask
All Implemented Interfaces:
IRankingAPITask, Runnable

public class UpdateTask extends cn.nukkit.scheduler.PluginTask<GameCore> implements IRankingAPITask
Author:
lt_name
  • Field Details

    • updateRankings

      private final Set<Ranking> updateRankings
  • Constructor Details

    • UpdateTask

      public UpdateTask(GameCore owner)
  • Method Details

    • getRankings

      public Set<Ranking> getRankings()
      Specified by:
      getRankings in interface IRankingAPITask
    • addRanking

      public boolean addRanking(@NotNull @NotNull Ranking ranking)
      Specified by:
      addRanking in interface IRankingAPITask
    • removeRanking

      public void removeRanking(@NotNull @NotNull Ranking ranking)
      Specified by:
      removeRanking in interface IRankingAPITask
    • onRun

      public void onRun(int i)
      Specified by:
      onRun in class cn.nukkit.scheduler.Task
    • onCancel

      public void onCancel()
      Overrides:
      onCancel in class cn.nukkit.scheduler.Task