public class MarkAsTypeFunction extends java.lang.Object implements EntityMethodFunction
MarkAsType annotation. It will resolve an
MarkAsTypeMethod to be used by the entity typing system.Entity.markAsType(Class).
@MarkAsType(Ghost.class)
boolean markGhost();
@MarkAsType(Ghost.class)
void markGhost();
NOTE: This function will throw exceptions if MarkAsType is present but the method
signature is invalid.DefaultEntityProxyFactory| Constructor and Description |
|---|
MarkAsTypeFunction() |
| Modifier and Type | Method and Description |
|---|---|
MarkAsTypeMethod |
apply(java.lang.reflect.Method m) |
public MarkAsTypeMethod apply(java.lang.reflect.Method m)
apply in interface java.util.function.Function<java.lang.reflect.Method,EntityMethod>