Class EventCreator<T>

java.lang.Object
io.github.rysefoxx.inventory.plugin.other.EventCreator<T>

public class EventCreator<T> extends Object
Class to create your own inventory events. RyseInventory.Builder.listener(EventCreator)
Since:
2/19/2022
  • Constructor Details

    • EventCreator

      @Contract(pure=true) public EventCreator(@NotNull @NotNull Class<T> clazz, @NotNull @NotNull Consumer<T> consumer)
  • Method Details

    • accept

      public void accept(T t)
    • getClazz

      @NotNull public @NotNull Class<T> getClazz()
      Returns the class of the object.
      Returns:
      The class of the object.