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_333970_) static <R> R
orElse
(ChunkResult<? extends R> p_331028_, R p_331551_) orElseThrow
(Supplier<E> p_330106_)
-
Method Details
-
of
-
error
-
error
-
isSuccess
boolean isSuccess() -
orElse
-
orElse
-
getError
-
ifSuccess
-
map
-
orElseThrow
- Throws:
E
-