public class AccessorModifierEventFactoryPlugin extends Object implements EventFactoryPlugin
Constructor and Description |
---|
AccessorModifierEventFactoryPlugin() |
Modifier and Type | Method and Description |
---|---|
boolean |
contributeProperty(Class<?> eventClass,
String internalName,
ClassWriter classWriter,
org.spongepowered.api.eventgencore.Property<Class<?>,Method> property)
Called to allow a plugin to override the generation of the field and method(s) for a
Property . |
public boolean contributeProperty(Class<?> eventClass, String internalName, ClassWriter classWriter, org.spongepowered.api.eventgencore.Property<Class<?>,Method> property)
EventFactoryPlugin
Property
.
If an event factory plugin does not have any special behavior for the provided Property
, it
should return false
, which passes on the property to other plugins for processing.
Returning true
stops the processing of the provided Property
.
contributeProperty
in interface EventFactoryPlugin
classWriter
- The ClassWriter
being used to generate the event class implementationproperty
- The Property
being processedProperty
was processed.