net.minecraft.server.world

public interface OptionalChunk<T>

net.minecraft.server.level.ChunkResult
net.minecraft.class_9259
net.minecraft.server.world.OptionalChunk

Method summary

Modifier and TypeMethod
static <T> OptionalChunk<T>
of(T value)
method_57124(T arg0)
of(T chunk)
static <T> OptionalChunk<T>
error(String error)
method_57125(String arg0)
of(String error)
static <T> OptionalChunk<T>
error(Supplier<String> errorSupplier)
method_57128(Supplier<String> arg0)
of(Supplier<String> error)
boolean
isSuccess()
method_57122()
isPresent()
T
orElse(T orElse)
method_57130(T arg0)
orElse(T other)
static <R> R
orElse(ChunkResult<? extends R> chunkResult, R orElse)
method_57123(class_9259<? extends R> arg0, R arg1)
orElse(OptionalChunk<? extends R> optionalChunk, R other)
String
getError()
method_57129()
getError()
OptionalChunk<T>
ifSuccess(Consumer<T> consumer)
method_57126(Consumer<T> arg0)
ifPresent(Consumer<T> callback)
<R> OptionalChunk<R>
map(Function<T, R> map)
method_57127(Function<T, R> arg0)
map(Function<T, R> mapper)
<E extends Throwable> T
orElseThrow(Supplier<E> exceptionSupplier) throws E
method_57132(Supplier<E> arg0) throws E
orElseThrow(Supplier<E> exceptionSupplier) throws E
private static String
lambda$error$0(String arg0)
method_57131(String arg0)
method_57131(String arg0)