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 value, Function<T,R> mapper)
    • mapOrDefault

      public static <T, R> R mapOrDefault(@Nullable T value, Function<T,R> mapper, R defaultValue)
    • mapOrElse

      public static <T, R> R mapOrElse(@Nullable T value, Function<T,R> mapper, Supplier<R> supplier)
    • first

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

      public static <T> T firstOrDefault(Collection<T> collection, T defaultValue)
    • firstOrElse

      public static <T> T firstOrElse(Collection<T> collection, Supplier<T> supplier)
    • isNullOrEmpty

      public static <T> boolean isNullOrEmpty(@Nullable T[] array)
    • isNullOrEmpty

      public static boolean isNullOrEmpty(@Nullable boolean[] array)
    • isNullOrEmpty

      public static boolean isNullOrEmpty(@Nullable byte[] array)
    • isNullOrEmpty

      public static boolean isNullOrEmpty(@Nullable char[] array)
    • isNullOrEmpty

      public static boolean isNullOrEmpty(@Nullable short[] array)
    • isNullOrEmpty

      public static boolean isNullOrEmpty(@Nullable int[] array)
    • isNullOrEmpty

      public static boolean isNullOrEmpty(@Nullable long[] array)
    • isNullOrEmpty

      public static boolean isNullOrEmpty(@Nullable float[] array)
    • isNullOrEmpty

      public static boolean isNullOrEmpty(@Nullable double[] array)