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> getError()boolean<R> ChunkResult<R> static <T> ChunkResult<T> of(T p_330787_) static <R> RorElse(ChunkResult<? extends R> p_331283_, R p_331474_) orElseThrow(Supplier<E> p_332112_)
-
Method Details
-
of
-
error
-
error
-
isSuccess
boolean isSuccess() -
orElse
-
orElse
-
getError
-
ifSuccess
-
map
-
orElseThrow
- Throws:
E
-