Package net.minecraft.src
Class Util
- java.lang.Object
-
- net.minecraft.src.Util
-
public final class Util extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <K,V>
java.util.Map<K,V>createMap(org.apache.commons.lang3.tuple.Pair<K,V>... entries)
static java.lang.String
formatTickDuration(int ticks)
static java.lang.String
getFilenameFormattedDateTime()
static java.util.stream.Stream<java.lang.String>
getXFlags()
static <T> java.util.function.Supplier<T>
lazy(java.util.function.Supplier<T> initializer)
static <T> T
make(java.util.function.Supplier<T> constructor)
static <T> T
make(T object, java.util.function.Consumer<T> constructor)
static com.google.gson.stream.JsonReader
newJsonReader(java.io.InputStream is)
static com.google.gson.stream.JsonWriter
newJsonWriter(java.io.OutputStream os)
static void
openUri(java.lang.String uri)
static <T> java.util.Collection<T>
topoSort(java.lang.Iterable<T> input, java.util.function.Function<T,java.lang.Iterable<T>> dependencies)
Thanks to this StackOverflow answer for the implementation.
-
-
-
Method Detail
-
newJsonReader
public static com.google.gson.stream.JsonReader newJsonReader(java.io.InputStream is)
-
newJsonWriter
public static com.google.gson.stream.JsonWriter newJsonWriter(java.io.OutputStream os)
-
createMap
@SafeVarargs public static <K,V> java.util.Map<K,V> createMap(org.apache.commons.lang3.tuple.Pair<K,V>... entries)
-
make
public static <T> T make(T object, java.util.function.Consumer<T> constructor)
-
make
public static <T> T make(java.util.function.Supplier<T> constructor)
-
lazy
public static <T> java.util.function.Supplier<T> lazy(java.util.function.Supplier<T> initializer)
-
openUri
public static void openUri(java.lang.String uri)
-
formatTickDuration
public static java.lang.String formatTickDuration(int ticks)
-
getXFlags
public static java.util.stream.Stream<java.lang.String> getXFlags()
-
getFilenameFormattedDateTime
public static java.lang.String getFilenameFormattedDateTime()
-
topoSort
public static <T> java.util.Collection<T> topoSort(java.lang.Iterable<T> input, java.util.function.Function<T,java.lang.Iterable<T>> dependencies)
Thanks to this StackOverflow answer for the implementation.
-
-