public enum LogicalSidedProvider extends java.lang.Enum<LogicalSidedProvider>
| Enum Constant and Description |
|---|
CLIENTWORLD |
INSTANCE |
WORKQUEUE |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(LogicalSide side) |
static void |
setClient(java.util.function.Supplier<Minecraft> client) |
static void |
setServer(java.util.function.Supplier<MinecraftServer> server) |
static LogicalSidedProvider |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LogicalSidedProvider[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LogicalSidedProvider WORKQUEUE
public static final LogicalSidedProvider INSTANCE
public static final LogicalSidedProvider CLIENTWORLD
public static LogicalSidedProvider[] values()
for (LogicalSidedProvider c : LogicalSidedProvider.values()) System.out.println(c);
public static LogicalSidedProvider 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 static void setClient(java.util.function.Supplier<Minecraft> client)
public static void setServer(java.util.function.Supplier<MinecraftServer> server)
public <T> T get(LogicalSide side)