Enum Class Mod.EventBusSubscriber.Bus

java.lang.Object
java.lang.Enum<Mod.EventBusSubscriber.Bus>
net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus
All Implemented Interfaces:
Serializable, Comparable<Mod.EventBusSubscriber.Bus>, Constable
Enclosing class:
Mod.EventBusSubscriber

public static enum Mod.EventBusSubscriber.Bus extends Enum<Mod.EventBusSubscriber.Bus>
  • Enum Constant Details

  • Field Details

    • busSupplier

      private final Supplier<net.minecraftforge.eventbus.api.IEventBus> busSupplier
  • Constructor Details

    • Bus

      private Bus(Supplier<net.minecraftforge.eventbus.api.IEventBus> eventBusSupplier)
  • Method Details

    • values

      public static Mod.EventBusSubscriber.Bus[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Mod.EventBusSubscriber.Bus valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • bus

      public Supplier<net.minecraftforge.eventbus.api.IEventBus> bus()