public interface ScriptedEventFactory<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
ScriptedEvent
instances.Modifier and Type | Method and Description |
---|---|
G |
newEventGameObject(int eventType)
Return a new event game object for a given event type.
|
ScriptedEvent<G,A,R> |
newScriptedEvent(G event)
Creates a new
ScriptedEvent instance. |
ScriptedEvent<G,A,R> |
newScriptedEvent(int eventType,
java.lang.String pluginName,
java.lang.String scriptPath,
java.lang.String options)
Creates a new
ScriptedEvent instance. |
@NotNull ScriptedEvent<G,A,R> newScriptedEvent(int eventType, @NotNull java.lang.String pluginName, @NotNull java.lang.String scriptPath, @NotNull java.lang.String options) throws UndefinedEventArchetypeException
ScriptedEvent
instance.eventType
- type of the eventpluginName
- name of the pluginscriptPath
- path to the file for this eventoptions
- the options for this eventUndefinedEventArchetypeException
- In case there is no Archetype to
create a ScriptedEvent.@NotNull ScriptedEvent<G,A,R> newScriptedEvent(G event)
ScriptedEvent
instance.event
- the event game object@NotNull G newEventGameObject(int eventType) throws UndefinedEventArchetypeException
eventType
- the event typeUndefinedEventArchetypeException
- if the event game object cannot
be created