HyCodeYourTale
classpublicabstractPriority 3

EventBusRegistry

com.hypixel.hytale.event.EventBusRegistry

18

Methods

18

Public Methods

6

Fields

1

Constructors

Constants

short[]EMPTY_SHORT_ARRAY= new short[0]
ObjectNULL= new Object()

Constructors

public
EventBusRegistry(HytaleLogger logger, Class<EventType> eventClass, ConsumerMapType global, ConsumerMapType unhandled)

Methods

Public Methods (18)

public
void add(ConsumerType eventConsumer)
public
List<ConsumerType> get(short priority)
@Nullable
public
String getConsumerString()
@Nonnull
public
Class<EventType> getEventClass()
@Nonnull
public
int getIndex()
public
short[] getPriorities()
public
short getPriority()
public
Metric getTimer()
@Nonnull
public
boolean isAlive()
public
boolean isEmpty()
public
boolean isTimeEvents()
public
EventRegistration<KeyType, EventType> register(short var1, KeyType var2, Consumer<EventType> var3)
public
EventRegistration<KeyType, EventType> registerGlobal(short var1, Consumer<EventType> var2)
public
EventRegistration<KeyType, EventType> registerUnhandled(short var1, Consumer<EventType> var2)
public
boolean remove(ConsumerType consumer)
public
void setTimeEvents(boolean timeEvents)
public
void shutdown()
public
String toString()
@Nonnull@Override

Fields

Protected Fields (6)

protectedClass<EventType> eventClass
protectedConsumerMapType global
protectedHytaleLogger logger
protectedboolean shutdown
protectedboolean timeEvents
protectedConsumerMapType unhandled

Related Classes