Interface OptionalChunk<T>

All Known Implementing Classes:
OptionalChunk.ActualChunk, OptionalChunk.LoadFailure

public interface OptionalChunk<T>
Mappings:
Namespace Name
named net/minecraft/server/world/OptionalChunk
intermediary net/minecraft/class_9259
official aqp
  • Method Details

    • of

      static <T> OptionalChunk<T> of(T chunk)
      Mappings:
      Namespace Name Mixin selector
      named of Lnet/minecraft/server/world/OptionalChunk;of(Ljava/lang/Object;)Lnet/minecraft/server/world/OptionalChunk;
      intermediary method_57124 Lnet/minecraft/class_9259;method_57124(Ljava/lang/Object;)Lnet/minecraft/class_9259;
      official a Laqp;a(Ljava/lang/Object;)Laqp;
    • of

      static <T> OptionalChunk<T> of(String error)
      Mappings:
      Namespace Name Mixin selector
      named of Lnet/minecraft/server/world/OptionalChunk;of(Ljava/lang/String;)Lnet/minecraft/server/world/OptionalChunk;
      intermediary method_57125 Lnet/minecraft/class_9259;method_57125(Ljava/lang/String;)Lnet/minecraft/class_9259;
      official a Laqp;a(Ljava/lang/String;)Laqp;
    • of

      static <T> OptionalChunk<T> of(Supplier<String> error)
      Mappings:
      Namespace Name Mixin selector
      named of Lnet/minecraft/server/world/OptionalChunk;of(Ljava/util/function/Supplier;)Lnet/minecraft/server/world/OptionalChunk;
      intermediary method_57128 Lnet/minecraft/class_9259;method_57128(Ljava/util/function/Supplier;)Lnet/minecraft/class_9259;
      official a Laqp;a(Ljava/util/function/Supplier;)Laqp;
    • isPresent

      boolean isPresent()
      Mappings:
      Namespace Name Mixin selector
      named isPresent Lnet/minecraft/server/world/OptionalChunk;isPresent()Z
      intermediary method_57122 Lnet/minecraft/class_9259;method_57122()Z
      official a Laqp;a()Z
    • orElse

      @Nullable T orElse(@Nullable T other)
      Mappings:
      Namespace Name Mixin selector
      named orElse Lnet/minecraft/server/world/OptionalChunk;orElse(Ljava/lang/Object;)Ljava/lang/Object;
      intermediary method_57130 Lnet/minecraft/class_9259;method_57130(Ljava/lang/Object;)Ljava/lang/Object;
      official b Laqp;b(Ljava/lang/Object;)Ljava/lang/Object;
    • orElse

      @Nullable static <R> R orElse(OptionalChunk<? extends R> optionalChunk, @Nullable R other)
      Mappings:
      Namespace Name Mixin selector
      named orElse Lnet/minecraft/server/world/OptionalChunk;orElse(Lnet/minecraft/server/world/OptionalChunk;Ljava/lang/Object;)Ljava/lang/Object;
      intermediary method_57123 Lnet/minecraft/class_9259;method_57123(Lnet/minecraft/class_9259;Ljava/lang/Object;)Ljava/lang/Object;
      official a Laqp;a(Laqp;Ljava/lang/Object;)Ljava/lang/Object;
    • getError

      Mappings:
      Namespace Name Mixin selector
      named getError Lnet/minecraft/server/world/OptionalChunk;getError()Ljava/lang/String;
      intermediary method_57129 Lnet/minecraft/class_9259;method_57129()Ljava/lang/String;
      official b Laqp;b()Ljava/lang/String;
    • ifPresent

      OptionalChunk<T> ifPresent(Consumer<T> callback)
      Mappings:
      Namespace Name Mixin selector
      named ifPresent Lnet/minecraft/server/world/OptionalChunk;ifPresent(Ljava/util/function/Consumer;)Lnet/minecraft/server/world/OptionalChunk;
      intermediary method_57126 Lnet/minecraft/class_9259;method_57126(Ljava/util/function/Consumer;)Lnet/minecraft/class_9259;
      official a Laqp;a(Ljava/util/function/Consumer;)Laqp;
    • map

      <R> OptionalChunk<R> map(Function<T,R> mapper)
      Mappings:
      Namespace Name Mixin selector
      named map Lnet/minecraft/server/world/OptionalChunk;map(Ljava/util/function/Function;)Lnet/minecraft/server/world/OptionalChunk;
      intermediary method_57127 Lnet/minecraft/class_9259;method_57127(Ljava/util/function/Function;)Lnet/minecraft/class_9259;
      official a Laqp;a(Ljava/util/function/Function;)Laqp;
    • orElseThrow

      <E extends Throwable> T orElseThrow(Supplier<E> exceptionSupplier) throws E
      Throws:
      E
      Mappings:
      Namespace Name Mixin selector
      named orElseThrow Lnet/minecraft/server/world/OptionalChunk;orElseThrow(Ljava/util/function/Supplier;)Ljava/lang/Object;
      intermediary method_57132 Lnet/minecraft/class_9259;method_57132(Ljava/util/function/Supplier;)Ljava/lang/Object;
      official b Laqp;b(Ljava/util/function/Supplier;)Ljava/lang/Object;