public static enum Mod.EventBusSubscriber.Bus extends java.lang.Enum<Mod.EventBusSubscriber.Bus>
| Enum Constant and Description |
|---|
FORGE
The main Forge Event Bus.
|
MOD
The mod specific Event bus.
|
| Modifier and Type | Field and Description |
|---|---|
private java.util.function.Supplier<net.minecraftforge.eventbus.api.IEventBus> |
busSupplier |
| Modifier and Type | Method and Description |
|---|---|
java.util.function.Supplier<net.minecraftforge.eventbus.api.IEventBus> |
bus() |
static Mod.EventBusSubscriber.Bus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Mod.EventBusSubscriber.Bus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Mod.EventBusSubscriber.Bus FORGE
MinecraftForge.EVENT_BUSpublic static final Mod.EventBusSubscriber.Bus MOD
private final java.util.function.Supplier<net.minecraftforge.eventbus.api.IEventBus> busSupplier
public static Mod.EventBusSubscriber.Bus[] values()
for (Mod.EventBusSubscriber.Bus c : Mod.EventBusSubscriber.Bus.values()) System.out.println(c);
public static Mod.EventBusSubscriber.Bus valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.util.function.Supplier<net.minecraftforge.eventbus.api.IEventBus> bus()