Package net.minecraft

Class Optionull

java.lang.Object
net.minecraft.Optionull

public class Optionull extends Object
  • Constructor Details

    • Optionull

      public Optionull()
  • Method Details

    • map

      @Nullable public static <T, R> R map(@Nullable T p_270441_, Function<T,R> p_270332_)
    • mapOrDefault

      public static <T, R> R mapOrDefault(@Nullable T p_270215_, Function<T,R> p_270557_, R p_270839_)
    • mapOrElse

      public static <T, R> R mapOrElse(@Nullable T p_270820_, Function<T,R> p_270536_, Supplier<R> p_270756_)
    • first

      @Nullable public static <T> T first(Collection<T> p_270346_)
    • firstOrDefault

      public static <T> T firstOrDefault(Collection<T> p_270625_, T p_270960_)
    • firstOrElse

      public static <T> T firstOrElse(Collection<T> p_270529_, Supplier<T> p_270239_)
    • 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_)