Interface ModifierService


public interface ModifierService
Registry and evaluator for StealABlock's stackable Modifier Pipeline.
  • Method Details

    • register

      @NotNull <C extends ModifierContext> @NotNull Registration register(@NotNull @NotNull org.bukkit.plugin.Plugin owner, @NotNull @NotNull ModifierType<C> type, @NotNull @NotNull Modifier<C> modifier)
      Registers a modifier on the specified pipeline. Automatically unregistered when owner disables.
    • evaluate

      @NotNull <C extends ModifierContext> @NotNull Breakdown evaluate(@NotNull @NotNull ModifierType<C> type, @NotNull C context)
      Evaluates all registered modifiers for type against context and returns a full breakdown.
    • getModifiers

      @NotNull <C extends ModifierContext> @NotNull Collection<Modifier<C>> getModifiers(@NotNull @NotNull ModifierType<C> type)
      Returns:
      read-only view of all currently registered modifiers for type