@FunctionalInterface
public interface EntityMethod
Method
called on an Entity
type to a desired function.
An EntityMethodFunction
will resolve the correct implemntation of this class depending on
the method signature (or annotations). This is used to build an Entity
type using
EntityFunctionResolver
.Modifier and Type | Method and Description |
---|---|
default java.util.Set<java.lang.Class<? extends Entity>> |
getDependencies()
Optional referenced entity dependencies (empty by default).
|
java.lang.Object |
invoke(java.lang.Object proxy,
Entity entity,
java.lang.Object[] args)
This will invoke the desired functionality for this method using the proxy, entity and
supplied arguments.
|
default java.util.Set<java.lang.Class<? extends Entity>> getDependencies()
java.lang.Object invoke(java.lang.Object proxy, Entity entity, java.lang.Object[] args) throws java.lang.Throwable
proxy
- Possible proxy of entity type.entity
- Entity this proxy is for.args
- Supplied arguments to the original method.java.lang.Throwable
- If the invocation caused an exception.