Package net.minecraft
Class Optionull
java.lang.Object
net.minecraft.Optionull
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
first
(Collection<T> p_270346_) static <T> T
firstOrDefault
(Collection<T> p_270625_, T p_270960_) static <T> T
firstOrElse
(Collection<T> p_270529_, Supplier<T> p_270239_) static boolean
isNullOrEmpty
(boolean[] p_270403_) static boolean
isNullOrEmpty
(byte[] p_270775_) static boolean
isNullOrEmpty
(char[] p_270512_) static boolean
isNullOrEmpty
(double[] p_270373_) static boolean
isNullOrEmpty
(float[] p_270428_) static boolean
isNullOrEmpty
(int[] p_270127_) static boolean
isNullOrEmpty
(long[] p_270148_) static boolean
isNullOrEmpty
(short[] p_270712_) static <T> boolean
isNullOrEmpty
(T[] p_270794_) static <T,
R> R static <T,
R> R mapOrDefault
(T p_270215_, Function<T, R> p_270557_, R p_270839_) static <T,
R> R
-
Constructor Details
-
Optionull
public Optionull()
-
-
Method Details
-
map
-
mapOrDefault
-
mapOrElse
-
first
-
firstOrDefault
-
firstOrElse
-
isNullOrEmpty
public static <T> boolean isNullOrEmpty(@Nullable T[] p_270794_) -
isNullOrEmpty
public static boolean isNullOrEmpty(@Nullable boolean[] p_270403_) -
isNullOrEmpty
public static boolean isNullOrEmpty(@Nullable byte[] p_270775_) -
isNullOrEmpty
public static boolean isNullOrEmpty(@Nullable char[] p_270512_) -
isNullOrEmpty
public static boolean isNullOrEmpty(@Nullable short[] p_270712_) -
isNullOrEmpty
public static boolean isNullOrEmpty(@Nullable int[] p_270127_) -
isNullOrEmpty
public static boolean isNullOrEmpty(@Nullable long[] p_270148_) -
isNullOrEmpty
public static boolean isNullOrEmpty(@Nullable float[] p_270428_) -
isNullOrEmpty
public static boolean isNullOrEmpty(@Nullable double[] p_270373_)
-