public static final class ListBuilder.Builder<T> extends Object implements ListBuilder<T>
ListBuilder.Builder<T>| Constructor and Description |
|---|
Builder(DynamicOps<T> ops) |
| Modifier and Type | Method and Description |
|---|---|
ListBuilder<T> |
add(DataResult<T> value) |
ListBuilder<T> |
add(T value) |
DataResult<T> |
build(T prefix) |
ListBuilder<T> |
mapError((String) -> String onError) |
DynamicOps<T> |
ops() |
ListBuilder<T> |
withErrorsFrom(DataResult<?> result) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, addAll, buildpublic Builder(DynamicOps<T> ops)
public DynamicOps<T> ops()
ops in interface ListBuilder<T>public ListBuilder<T> add(T value)
add in interface ListBuilder<T>public ListBuilder<T> add(DataResult<T> value)
add in interface ListBuilder<T>public ListBuilder<T> withErrorsFrom(DataResult<?> result)
withErrorsFrom in interface ListBuilder<T>public ListBuilder<T> mapError((String) -> String onError)
mapError in interface ListBuilder<T>public DataResult<T> build(T prefix)
build in interface ListBuilder<T>