Contents
Class EventBusRegistry.EventConsumer
java.lang.Object
com.hypixel.hytale.event.EventBusRegistry.EventConsumer
- Enclosing class:
EventBusRegistry<KeyType, EventType extends IBaseEvent<KeyType>, ConsumerMapType extends EventBusRegistry.EventConsumerMap<EventType, ?, ?>>
An abstract event consumer for the event bus registry.
-
Constructor Summary
ConstructorsConstructorDescriptionEventConsumer(short priority, String consumerString) Default Constructor for anEventBusRegistry.EventConsumerinstance. -
Method Summary
-
Constructor Details
-
EventConsumer
Default Constructor for anEventBusRegistry.EventConsumerinstance.- Parameters:
priority- The priority of the consumer.consumerString- The consumer string representation.
-
-
Method Details
-
getIndex
public int getIndex()- Returns:
- the index of this consumer.
-
getPriority
public short getPriority()- Returns:
- the priority of this consumer.
-
getConsumerString
- Returns:
- the consumer string representation.
-
getTimer
- Returns:
- the metric to time the execution of this consumer.
-
toString
-