Package net.minecraft.server.level
Interface ChunkResult<T>
- All Known Implementing Classes:
ChunkResult.Fail
,ChunkResult.Success
public interface ChunkResult<T>
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final record
static 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> R
orElse
(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
-