public class BiHookSet<V,R>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
BiHookSet.Hook<V,R> |
| Modifier and Type | Field and Description |
|---|---|
java.util.Set<BiHookSet.Hook<V,R>> |
list |
| Constructor and Description |
|---|
BiHookSet() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hook(V context,
R object) |
void |
registerHook(BiHookSet.Hook<V,R> hook) |
boolean |
unregisterHook(BiHookSet.Hook<V,R> hook) |
public java.util.Set<BiHookSet.Hook<V,R>> list
public void registerHook(BiHookSet.Hook<V,R> hook)
public boolean unregisterHook(BiHookSet.Hook<V,R> hook)
public boolean hook(V context, R object) throws HookException
context - custom paramobject - custom paramHookException - The hook may return the error text throwing this exception