Package com.mojang.datafixers
Class DataFixUtils
java.lang.Object
com.mojang.datafixers.DataFixUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
ceillog2
(int input) static <T> UnaryOperator<T>
consumerToFunction
(Consumer<T> consumer) static int
getSubVersion
(int key) static int
getVersion
(int key) static <T> T
static <T> T
static int
makeKey
(int version) static int
makeKey
(int version, int subVersion) static <U> Optional<U>
static <U> U
static <U> U
static int
smallestEncompassingPowerOfTwo
(int input) static byte[]
toArray
(ByteBuffer input)
-
Method Details
-
smallestEncompassingPowerOfTwo
public static int smallestEncompassingPowerOfTwo(int input) -
ceillog2
public static int ceillog2(int input) -
make
-
make
-
orElse
-
orElseGet
-
or
-
toArray
-
makeKey
public static int makeKey(int version) -
makeKey
public static int makeKey(int version, int subVersion) -
getVersion
public static int getVersion(int key) -
getSubVersion
public static int getSubVersion(int key) -
consumerToFunction
-