Class Achievement


  • public class Achievement
    extends java.lang.Object
    This class represent a achievement (aka Advancement)
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Achievement.AchievementBuilder
      This class is used for build an Advancement
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void complete​(@NotNull org.bukkit.entity.Player player)
      Complete this achievement for the selected player
      boolean equals​(@NotNull java.lang.Object o)  
      void revoke​(@NotNull org.bukkit.entity.Player player)
      Revoke this achievement for the selected player
      void show​(@NotNull org.bukkit.entity.Player player)
      This method is useful for show the toast, message in chat etc..
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • complete

        public void complete​(@NotNull
                             @NotNull org.bukkit.entity.Player player)
        Complete this achievement for the selected player
        Parameters:
        player - Player instance
      • revoke

        public void revoke​(@NotNull
                           @NotNull org.bukkit.entity.Player player)
        Revoke this achievement for the selected player
        Parameters:
        player - Player instance
      • show

        public void show​(@NotNull
                         @NotNull org.bukkit.entity.Player player)
        This method is useful for show the toast, message in chat etc.. It will call complete(Player) and revoke(Player) 1 second later
        Parameters:
        player - The player instance
      • equals

        public boolean equals​(@NotNull
                              @NotNull java.lang.Object o)
        Overrides:
        equals in class java.lang.Object