Package com.mojang.serialization
Interface RecordBuilder<T>
- All Known Implementing Classes:
RecordBuilder.AbstractBuilder
,RecordBuilder.AbstractStringBuilder
,RecordBuilder.AbstractUniversalBuilder
,RecordBuilder.MapBuilder
public interface RecordBuilder<T>
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
static class
static class
static final class
-
Method Summary
Modifier and TypeMethodDescriptionadd
(DataResult<T> key, DataResult<T> value) default RecordBuilder<T>
add
(String key, DataResult<T> value) default <E> RecordBuilder<T>
default RecordBuilder<T>
add
(T key, DataResult<T> value) default DataResult<T>
build
(DataResult<T> prefix) mapError
(UnaryOperator<String> onError) ops()
setLifecycle
(Lifecycle lifecycle) withErrorsFrom
(DataResult<?> result)
-
Method Details
-
ops
DynamicOps<T> ops() -
add
-
add
-
add
-
withErrorsFrom
-
setLifecycle
-
mapError
-
build
-
build
-
add
-
add
-
add
-