Package net.minecraft
Class Optionull
java.lang.Object
net.minecraft.Optionull
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T> Tfirst(Collection<T> p_270346_) static <T> TfirstOrDefault(Collection<T> p_270625_, T p_270960_) static <T> TfirstOrElse(Collection<T> p_270529_, Supplier<T> p_270239_) static booleanisNullOrEmpty(boolean[] p_270403_) static booleanisNullOrEmpty(byte[] p_270775_) static booleanisNullOrEmpty(char[] p_270512_) static booleanisNullOrEmpty(double[] p_270373_) static booleanisNullOrEmpty(float[] p_270428_) static booleanisNullOrEmpty(int[] p_270127_) static booleanisNullOrEmpty(long[] p_270148_) static booleanisNullOrEmpty(short[] p_270712_) static <T> booleanisNullOrEmpty(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- 
Optionullpublic Optionull()
 
- 
- 
Method Details- 
map
- 
mapOrDefault
- 
mapOrElse
- 
first
- 
firstOrDefault
- 
firstOrElse
- 
isNullOrEmptypublic static <T> boolean isNullOrEmpty(@Nullable T[] p_270794_) 
- 
isNullOrEmptypublic static boolean isNullOrEmpty(@Nullable boolean[] p_270403_) 
- 
isNullOrEmptypublic static boolean isNullOrEmpty(@Nullable byte[] p_270775_) 
- 
isNullOrEmptypublic static boolean isNullOrEmpty(@Nullable char[] p_270512_) 
- 
isNullOrEmptypublic static boolean isNullOrEmpty(@Nullable short[] p_270712_) 
- 
isNullOrEmptypublic static boolean isNullOrEmpty(@Nullable int[] p_270127_) 
- 
isNullOrEmptypublic static boolean isNullOrEmpty(@Nullable long[] p_270148_) 
- 
isNullOrEmptypublic static boolean isNullOrEmpty(@Nullable float[] p_270428_) 
- 
isNullOrEmptypublic static boolean isNullOrEmpty(@Nullable double[] p_270373_) 
 
-