Package net.minecraft

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 value, T defaultValue)
      Deprecated.
    • map

      public static <T, R> @Nullable 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

      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> supplier)
    • isNullOrEmpty

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

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

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

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

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

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

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

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

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