IEventBus interface

Пакет: com.hypixel.hytale.event

Файл: com/hypixel/hytale/event/IEventBus.java

extends: IEventRegistry

Методы (6)

МодификаторыВозвратСигнатура
default <KeyType, EventType extends IEvent<KeyType>> EventType dispatch<KeyType, EventType extends IEvent<KeyType>> EventType dispatch(@Nonnull Class<EventType> var1)
default <EventType extends IAsyncEvent<Void>> CompletableFuture<EventType> dispatchAsync<EventType extends IAsyncEvent<Void>> CompletableFuture<EventType> dispatchAsync(@Nonnull Class<EventType> var1)
default <KeyType, EventType extends IEvent<KeyType>> IEventDispatcher<EventType, EventType> dispatchFor<KeyType, EventType extends IEvent<KeyType>> IEventDispatcher<EventType, EventType> dispatchFor(@Nonnull Class<? super EventType> var1)
abstract <KeyType, EventType extends IEvent<KeyType>> IEventDispatcher<EventType, EventType> dispatchFor<KeyType, EventType extends IEvent<KeyType>> IEventDispatcher<EventType, EventType> dispatchFor(@Nonnull Class<? super EventType> var1, @Nullable KeyType var2)
default <KeyType, EventType extends IAsyncEvent<KeyType>> IEventDispatcher<EventType, CompletableFuture<EventType>> dispatchForAsync<KeyType, EventType extends IAsyncEvent<KeyType>> IEventDispatcher<EventType, CompletableFuture<EventType>> dispatchForAsync(@Nonnull Class<? super EventType> var1)
abstract <KeyType, EventType extends IAsyncEvent<KeyType>> IEventDispatcher<EventType, CompletableFuture<EventType>> dispatchForAsync<KeyType, EventType extends IAsyncEvent<KeyType>> IEventDispatcher<EventType, CompletableFuture<EventType>> dispatchForAsync(@Nonnull Class<? super EventType> var1, @Nullable KeyType var2)

Исходный код

Показать/скрыть
class="kw">package com.hypixel.hytale.event;

class="kw">import java.util.concurrent.CompletableFuture;
class="kw">import javax.annotation.Nonnull;
class="kw">import javax.annotation.Nullable;

class="kw">public class="kw">interface IEventBus class="kw">extends IEventRegistry {
   class="kw">default <KeyType, EventType class="kw">extends IEvent<KeyType>> EventType dispatch(@Nonnull Class<EventType> var1) {
      class="kw">return this.dispatchFor(var1, null).dispatch(null);
   }

   class="kw">default <EventType class="kw">extends IAsyncEvent<Void>> CompletableFuture<EventType> dispatchAsync(@Nonnull Class<EventType> var1) {
      class="kw">return this.<Void, EventType>dispatchForAsync(var1).dispatch(null);
   }

   class="kw">default <KeyType, EventType class="kw">extends IEvent<KeyType>> IEventDispatcher<EventType, EventType> dispatchFor(@Nonnull Class<? super EventType> var1) {
      class="kw">return this.dispatchFor(var1, null);
   }

   <KeyType, EventType class="kw">extends IEvent<KeyType>> IEventDispatcher<EventType, EventType> dispatchFor(
      @Nonnull Class<? super EventType> var1, @Nullable KeyType var2
   );

   class="kw">default <KeyType, EventType class="kw">extends IAsyncEvent<KeyType>> IEventDispatcher<EventType, CompletableFuture<EventType>> dispatchForAsync(
      @Nonnull Class<? super EventType> var1
   ) {
      class="kw">return this.dispatchForAsync(var1, null);
   }

   <KeyType, EventType class="kw">extends IAsyncEvent<KeyType>> IEventDispatcher<EventType, CompletableFuture<EventType>> dispatchForAsync(
      @Nonnull Class<? super EventType> var1, @Nullable KeyType var2
   );
}