Interface StealService
public interface StealService
Controls active steals, thief carrying state, and the pluggable
StealRule arbiter.-
Method Summary
Modifier and TypeMethodDescriptionbooleancancelSteal(@NotNull org.bukkit.entity.Player thief) @NotNull RuleVerdictevaluateRules(@NotNull StealContext context) @NotNull ActionResultforceInstantSteal(@NotNull org.bukkit.entity.Player thief, @NotNull StoredBlockView target, @NotNull Cause cause) @NotNull Collection<UUID> @NotNull Optional<StealSession> getSession(@NotNull UUID thiefId) booleanisCarryingStolenBlock(@NotNull UUID playerId) booleanisStealing(@NotNull UUID playerId) @NotNull RegistrationregisterRule(@NotNull org.bukkit.plugin.Plugin owner, @NotNull net.kyori.adventure.key.Key key, int priority, @NotNull StealRule rule) default @NotNull RegistrationregisterRule(@NotNull org.bukkit.plugin.Plugin owner, @NotNull net.kyori.adventure.key.Key key, @NotNull StealRule rule) @NotNull ActionResultstartSteal(@NotNull org.bukkit.entity.Player thief, @NotNull StoredBlockView target, @NotNull Cause cause)
-
Method Details
-
isStealing
-
isCarryingStolenBlock
-
getSession
-
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
-
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
-