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, ?, ?>>

public abstract static class EventBusRegistry.EventConsumer extends Object
An abstract event consumer for the event bus registry.
  • Constructor Details

    • EventConsumer

      public EventConsumer(short priority, @Nonnull String consumerString)
      Default Constructor for an EventBusRegistry.EventConsumer instance.
      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

      @Nonnull public String getConsumerString()
      Returns:
      the consumer string representation.
    • getTimer

      @Nonnull public Metric getTimer()
      Returns:
      the metric to time the execution of this consumer.
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object