-
Notifications
You must be signed in to change notification settings - Fork 0
API Reference
DarkBladeDev edited this page Feb 21, 2026
·
1 revision
Esta referencia describe las interfaces públicas del proyecto.
registerAction(String id, ActionFactory factory)registerCondition(String id, ConditionFactory factory)registerTrigger(String id, TriggerFactory factory)registerScope(String id, ScopeFactory factory)registerChunkStrategy(String id, ChunkSelectionStrategy strategy)Optional<EventHandle> getActiveEvent(ChunkPos chunkPos)StartResult startEvent(String eventId, ChunkPos chunkPos)
Representa un runtime activo.
String getEventId()UUID getRuntimeId()EventState getState()void cancel()
Contexto entregado a actions y conditions.
Server getServer()World getWorld()Set<UUID> getParticipants()Map<String, Object> getVariables()Object getVariable(String key)void setVariable(String key, Object value)
Action.execute(EventContext context)Condition.evaluate(EventContext context)
ActionFactory.create(Map<String, Object> config)ConditionFactory.create(Map<String, Object> config)TriggerFactory.create(Map<String, Object> config, String eventId)ScopeFactory.create(Map<String, Object> config)
Un trigger puede registrar listeners/tasks y luego disparar al motor con TriggerContext.
TriggerContext:
String getEventId()Optional<World> getWorld()Optional<Location> getLocation()
Posición por chunk:
UUID worldId-
int x,int z offset(dx, dz)
Optional<ChunkPos> select(World world, TriggerContext context)
Set<ChunkPos> resolveChunks(ChunkPos origin)
Resultado de intentar iniciar un evento.
SUCCESSNOT_FOUNDCHUNK_OCCUPIEDINVALID_TARGETCONDITIONS_FAILED
CustomEventEngine • Paper/Spigot API 1.20+ • Java 21