Package net.minecraft.server.level
Interface ChunkResult<T>
- All Known Implementing Classes:
ChunkResult.Fail,ChunkResult.Success
public interface ChunkResult<T>
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic final record -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ChunkResult<T> static <T> ChunkResult<T> @Nullable StringgetError()boolean<R> ChunkResult<R> static <T> ChunkResult<T> of(T pValue) @Nullable Tstatic <R> @Nullable RorElse(ChunkResult<? extends R> pChunkResult, @Nullable R pOrElse) orElseThrow(Supplier<E> pExceptionSupplier)
-
Method Details
-
of
-
error
-
error
-
isSuccess
boolean isSuccess() -
orElse
-
orElse
-
getError
@Nullable String getError() -
ifSuccess
-
map
-
orElseThrow
- Throws:
E
-