net.minecraft.server.world

public record OptionalChunk$LoadFailure<T>

implements OptionalChunk<T>

net.minecraft.server.level.ChunkResult$Fail
net.minecraft.class_9259$class_9260
net.minecraft.server.world.OptionalChunk$LoadFailure

Field summary

Modifier and TypeField
private final Supplier<String>
error
comp_2367
error

Constructor summary

ModifierConstructor
public (Supplier<String> error)

Method summary

Modifier and TypeMethod
public boolean
isSuccess()
method_57122()
isPresent()
public T
orElse(T orElse)
method_57130(T arg0)
orElse(T arg0)
public String
getError()
method_57129()
getError()
public OptionalChunk<T>
ifSuccess(Consumer<T> consumer)
method_57126(Consumer<T> arg0)
ifPresent(Consumer<T> arg0)
public <R> OptionalChunk<R>
map(Function<T, R> map)
method_57127(Function<T, R> arg0)
map(Function<T, R> arg0)
public <E extends Throwable> T
orElseThrow(Supplier<E> exceptionSupplier) throws E
method_57132(Supplier<E> arg0) throws E
orElseThrow(Supplier<E> arg0) throws E
public Supplier<String>
error()
comp_2367()
error()