public enum SidedProvider extends java.lang.Enum<SidedProvider>
Enum Constant and Description |
---|
DATAFIXER |
SIDED_SETUP_EVENT |
STARTUPQUERY |
STRIPCHARS |
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<DedicatedServer> |
server |
private java.util.function.Function<java.util.function.Supplier<DedicatedServer>,?> |
serverSide |
private java.util.function.Supplier<?> |
testSide |
Modifier and Type | Method and Description |
---|---|
<T> T |
get() |
static void |
setClient(java.util.function.Supplier<Minecraft> client) |
static void |
setServer(java.util.function.Supplier<DedicatedServer> server) |
static SidedProvider |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SidedProvider[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SidedProvider DATAFIXER
public static final SidedProvider SIDED_SETUP_EVENT
public static final SidedProvider STRIPCHARS
public static final SidedProvider STARTUPQUERY
private static java.util.function.Supplier<Minecraft> client
private static java.util.function.Supplier<DedicatedServer> server
private final java.util.function.Function<java.util.function.Supplier<Minecraft>,?> clientSide
private final java.util.function.Function<java.util.function.Supplier<DedicatedServer>,?> serverSide
private final java.util.function.Supplier<?> testSide
public static SidedProvider[] values()
for (SidedProvider c : SidedProvider.values()) System.out.println(c);
public static SidedProvider 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<DedicatedServer> server)
public <T> T get()