Class TargetedEventHandler<E>

java.lang.Object
dev.latvian.mods.rhino.ScriptableObject
dev.latvian.mods.rhino.IdScriptableObject
dev.latvian.mods.rhino.BaseFunction
dev.latvian.mods.kubejs.event.EventHandler
dev.latvian.mods.kubejs.event.TargetedEventHandler<E>
All Implemented Interfaces:
dev.latvian.mods.rhino.Callable, dev.latvian.mods.rhino.ConstProperties, dev.latvian.mods.rhino.Function, dev.latvian.mods.rhino.IdEnumerationIterator, dev.latvian.mods.rhino.IdFunctionCall, dev.latvian.mods.rhino.Scriptable, dev.latvian.mods.rhino.SymbolScriptable

public class TargetedEventHandler<E> extends EventHandler
  • Nested Class Summary

    Nested classes/interfaces inherited from class dev.latvian.mods.rhino.ScriptableObject

    dev.latvian.mods.rhino.ScriptableObject.KeyComparator
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     

    Fields inherited from class dev.latvian.mods.kubejs.event.EventHandler

    eventContainers, eventType, exceptionHandler, group, name, result, scriptTypePredicate, target, targetRequired

    Fields inherited from class dev.latvian.mods.rhino.ScriptableObject

    CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST

    Fields inherited from interface dev.latvian.mods.rhino.Scriptable

    NOT_FOUND
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    createMap(@Nullable Object extraId)
     
     
     
    void
     
    boolean
     
    boolean
    hasListeners(E extraId)
     
     
    hasResult(dev.latvian.mods.rhino.type.TypeInfo result)
    Allow event.cancel() to be called
    post(KubeEvent event, E extraId)
     
    post(ScriptTypeHolder type, E extraId, KubeEvent event)
     

    Methods inherited from class dev.latvian.mods.kubejs.event.EventHandler

    call, getResult, listen, listenJava, post, post, postInternal, requiredTarget, supportsTarget, toString

    Methods inherited from class dev.latvian.mods.rhino.BaseFunction

    construct, createObject, execIdCall, fillConstructorProperties, findInstanceIdInfo, findPrototypeId, getArity, getClassName, getClassPrototype, getFunctionName, getInstanceIdName, getInstanceIdValue, getLength, getMaxInstanceId, getPrototypeProperty, getTypeOf, hasInstance, hasPrototypeProperty, initPrototypeId, isGeneratorFunction, setImmunePrototypeProperty, setInstanceIdAttributes, setInstanceIdValue, toFunctionString

    Methods inherited from class dev.latvian.mods.rhino.IdScriptableObject

    activatePrototypeMap, addIdFunctionProperty, defaultGet, defaultHas, defaultPut, defineOwnProperty, delete, delete, exportAsJSClass, findInstanceIdInfo, findPrototypeId, get, get, getAttributes, getAttributes, getOwnPropertyDescriptor, has, has, hasPrototypeMap, incompatibleCallError, initPrototypeConstructor, initPrototypeMethod, initPrototypeMethod, initPrototypeMethod, initPrototypeValue, initPrototypeValue, instanceIdInfo, put, put, setAttributes

    Methods inherited from class dev.latvian.mods.rhino.ScriptableObject

    applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, checkPropertyChange, checkPropertyDefinition, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, equivalentValues, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, putConst, putConstProperty, putProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface dev.latvian.mods.rhino.Scriptable

    delete, delete, enumerationIteratorHasNext, enumerationIteratorNext, get, get, getAllIds, getDefaultValue, getIds, getParentScope, getPrototype, has, has, put, put, setParentScope, setPrototype