Interface StealService


public interface StealService
Controls active steals, thief carrying state, and the pluggable StealRule arbiter.
  • Method Details

    • isStealing

      boolean isStealing(@NotNull @NotNull UUID playerId)
    • isCarryingStolenBlock

      boolean isCarryingStolenBlock(@NotNull @NotNull UUID playerId)
    • getSession

      @NotNull @NotNull Optional<StealSession> getSession(@NotNull @NotNull UUID thiefId)
    • getActiveStealingPlayers

      @NotNull @NotNull Collection<UUID> getActiveStealingPlayers()
    • startSteal

      @MainThread @NotNull @NotNull ActionResult startSteal(@NotNull @NotNull org.bukkit.entity.Player thief, @NotNull @NotNull StoredBlockView target, @NotNull @NotNull Cause cause)
    • forceInstantSteal

      @MainThread @NotNull @NotNull ActionResult forceInstantSteal(@NotNull @NotNull org.bukkit.entity.Player thief, @NotNull @NotNull StoredBlockView target, @NotNull @NotNull Cause cause)
    • cancelSteal

      @MainThread boolean cancelSteal(@NotNull @NotNull org.bukkit.entity.Player thief)
    • registerRule

      @NotNull @NotNull Registration registerRule(@NotNull @NotNull org.bukkit.plugin.Plugin owner, @NotNull @NotNull net.kyori.adventure.key.Key key, int priority, @NotNull @NotNull StealRule rule)
    • registerRule

      @NotNull default @NotNull Registration registerRule(@NotNull @NotNull org.bukkit.plugin.Plugin owner, @NotNull @NotNull net.kyori.adventure.key.Key key, @NotNull @NotNull StealRule rule)
    • evaluateRules

      @NotNull @NotNull RuleVerdict evaluateRules(@NotNull @NotNull StealContext context)