Interface MilestoneService


public interface MilestoneService
Manages stealing milestones, block discovery index, and custom milestone reward handlers.
  • Method Details

    • getTotalStolen

      int getTotalStolen(@NotNull @NotNull UUID playerId)
    • incrementTotalStolen

      void incrementTotalStolen(@NotNull @NotNull UUID playerId, int delta)
    • getClaimedMilestones

      @NotNull @NotNull List<String> getClaimedMilestones(@NotNull @NotNull UUID playerId)
    • hasClaimed

      boolean hasClaimed(@NotNull @NotNull UUID playerId, @NotNull @NotNull String milestoneId)
    • getDiscoveredBlocks

      @NotNull @NotNull Set<String> getDiscoveredBlocks(@NotNull @NotNull UUID playerId)
    • hasDiscoveredBlock

      boolean hasDiscoveredBlock(@NotNull @NotNull UUID playerId, @NotNull @NotNull String blockId)
    • discoverBlock

      void discoverBlock(@NotNull @NotNull UUID playerId, @NotNull @NotNull String blockId)
    • registerRewardHandler

      @NotNull @NotNull Registration registerRewardHandler(@NotNull @NotNull org.bukkit.plugin.Plugin owner, @NotNull @NotNull net.kyori.adventure.key.Key rewardTypeKey, @NotNull @NotNull MilestoneService.MilestoneRewardHandler handler)