Class Optionull

java.lang.Object
net.minecraft.Optionull

public class Optionull extends Object
  • Constructor Details

    • Optionull

      public Optionull()
  • Method Details

    • orElse

      @Deprecated public static <T> T orElse(@Nullable T t, T defaultValue)
      Deprecated.
    • map

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

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

      public static <T,R> R mapOrElse(@Nullable T t, Function<T,R> map, Supplier<R> elseSupplier)
    • first

      public static <T> @Nullable 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> elseSupplier)
    • isNullOrEmpty

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

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

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

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

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

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

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

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

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