Interface ModifierService
public interface ModifierService
Registry and evaluator for StealABlock's stackable Modifier Pipeline.
-
Method Summary
Modifier and TypeMethodDescription<C extends ModifierContext>
@NotNull Breakdownevaluate(@NotNull ModifierType<C> type, C context) Evaluates all registered modifiers fortypeagainstcontextand returns a full breakdown.<C extends ModifierContext>
@NotNull Collection<Modifier<C>> getModifiers(@NotNull ModifierType<C> type) <C extends ModifierContext>
@NotNull Registrationregister(@NotNull org.bukkit.plugin.Plugin owner, @NotNull ModifierType<C> type, @NotNull Modifier<C> modifier) Registers a modifier on the specified 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 whenownerdisables. -
evaluate
@NotNull <C extends ModifierContext> @NotNull Breakdown evaluate(@NotNull @NotNull ModifierType<C> type, @NotNull C context) Evaluates all registered modifiers fortypeagainstcontextand 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
-