public enum LogicalSidedProvider extends java.lang.Enum<LogicalSidedProvider>
Enum Constant and Description |
---|
CLIENTWORLD |
INSTANCE |
WORKQUEUE |
Modifier and Type | Field and Description |
---|---|
private static java.util.function.Supplier<Minecraft> |
client |
private java.util.function.Function<java.util.function.Supplier<Minecraft>,?> |
clientSide |
private static java.util.function.Supplier<MinecraftServer> |
server |
private java.util.function.Function<java.util.function.Supplier<MinecraftServer>,?> |
serverSide |
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
private static java.util.function.Supplier<Minecraft> client
private static java.util.function.Supplier<MinecraftServer> server
private final java.util.function.Function<java.util.function.Supplier<Minecraft>,?> clientSide
private final java.util.function.Function<java.util.function.Supplier<MinecraftServer>,?> serverSide
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)