public class KillEntityFunction extends java.lang.Object implements EntityMethodFunction
KillEntity
annotation. It will resolve an
KillEntityMethod
to be used by the entity typing system.EntityContainer.killEntity(UUID)
.
@KillEntity
boolean killGhost(UUID id);
@KillEntity
void killGhost(UUID id);
@EntityID
@KillEntity
boolean killGhost();
@EntityID
@KillEntity
void killGhost();
NOTE: This function will throw exceptions if KillEntity
is present but the method
signature is invalid.DefaultEntityProxyFactory
Constructor and Description |
---|
KillEntityFunction() |
Modifier and Type | Method and Description |
---|---|
KillEntityMethod |
apply(java.lang.reflect.Method m) |
public KillEntityMethod apply(java.lang.reflect.Method m)
apply
in interface java.util.function.Function<java.lang.reflect.Method,EntityMethod>