net.minecraft.util

public class Nullables

net.minecraft.Optionull
net.minecraft.class_8144
net.minecraft.util.Nullables

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static <T> T
orElse(T t, T defaultValue)
method_62789(T arg0, T arg1)
requireNonNullElse(T first, T second)
public static <T, R> R
map(T t, Function<T, R> map)
method_49077(T arg0, Function<T, R> arg1)
map(T value, Function<T, R> mapper)
public static <T, R> R
mapOrDefault(T t, Function<T, R> map, R defaultValue)
method_49078(T arg0, Function<T, R> arg1, R arg2)
mapOrElse(T value, Function<T, R> mapper, R other)
public static <T, R> R
mapOrElse(T t, Function<T, R> map, Supplier<R> elseSupplier)
method_49079(T arg0, Function<T, R> arg1, Supplier<R> arg2)
mapOrElseGet(T value, Function<T, R> mapper, Supplier<R> getter)
public static <T> T
first(Collection<T> collection)
method_49080(Collection<T> arg0)
getFirst(Collection<T> collection)
public static <T> T
firstOrDefault(Collection<T> collection, T defaultValue)
method_49081(Collection<T> arg0, T arg1)
getFirstOrElse(Collection<T> collection, T defaultValue)
public static <T> T
firstOrElse(Collection<T> collection, Supplier<T> elseSupplier)
method_49082(Collection<T> arg0, Supplier<T> arg1)
getFirstOrElseGet(Collection<T> collection, Supplier<T> getter)
public static <T> boolean
isNullOrEmpty(T[] t)
method_49089(T[] arg0)
isEmpty(T[] array)
public static boolean
isNullOrEmpty(boolean[] t)
method_49091(boolean[] arg0)
isEmpty(boolean[] array)
public static boolean
isNullOrEmpty(byte[] t)
method_49083(byte[] arg0)
isEmpty(byte[] array)
public static boolean
isNullOrEmpty(char[] t)
method_49084(char[] arg0)
isEmpty(char[] array)
public static boolean
isNullOrEmpty(short[] t)
method_49090(short[] arg0)
isEmpty(short[] array)
public static boolean
isNullOrEmpty(int[] t)
method_49087(int[] arg0)
isEmpty(int[] array)
public static boolean
isNullOrEmpty(long[] t)
method_49088(long[] arg0)
isEmpty(long[] array)
public static boolean
isNullOrEmpty(float[] t)
method_49086(float[] arg0)
isEmpty(float[] array)
public static boolean
isNullOrEmpty(double[] t)
method_49085(double[] arg0)
isEmpty(double[] array)