Package com.mojang.serialization
Class Dynamic<T>
java.lang.Object
com.mojang.serialization.DynamicLike<T>
com.mojang.serialization.Dynamic<T>
-
Field Summary
Fields inherited from class com.mojang.serialization.DynamicLike
ops
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasMapOpt()
asNumber()
DataResult<Stream<Dynamic<T>>>
asString()
<U> U
cast
(DynamicOps<U> ops) <U> Dynamic<U>
castTyped
(DynamicOps<U> ops) <R> Dynamic<R>
convert
(DynamicOps<R> outOps) static <S,
T> T convert
(DynamicOps<S> inOps, DynamicOps<T> outOps, S input) <A> DataResult<Pair<A,
T>> boolean
getElement
(String key) getElementGeneric
(T key) getGeneric
(T key) getValue()
int
hashCode()
<V> V
toString()
updateGeneric
(T key, Function<T, T> function) Methods inherited from class com.mojang.serialization.DynamicLike
asBoolean, asByte, asByteBuffer, asDouble, asFloat, asInt, asIntStream, asList, asListOpt, asLong, asLongStream, asMap, asMapOpt, asNumber, asShort, asStream, asString, createBoolean, createByte, createByteList, createDouble, createFloat, createInt, createIntList, createList, createLong, createLongList, createMap, createNumeric, createShort, createString, emptyList, emptyMap, getElement, getElementGeneric, getOps, read, readList, readList, readMap, readMap, readMap
-
Constructor Details
-
Dynamic
-
Dynamic
-
-
Method Details
-
getValue
-
map
-
castTyped
-
cast
-
merge
-
merge
-
getMapValues
-
updateMapValues
-
asNumber
- Specified by:
asNumber
in classDynamicLike<T>
-
asString
- Specified by:
asString
in classDynamicLike<T>
-
asStreamOpt
- Specified by:
asStreamOpt
in classDynamicLike<T>
-
asMapOpt
- Specified by:
asMapOpt
in classDynamicLike<T>
-
asByteBufferOpt
- Specified by:
asByteBufferOpt
in classDynamicLike<T>
-
asIntStreamOpt
- Specified by:
asIntStreamOpt
in classDynamicLike<T>
-
asLongStreamOpt
- Specified by:
asLongStreamOpt
in classDynamicLike<T>
-
get
- Specified by:
get
in classDynamicLike<T>
-
getGeneric
- Specified by:
getGeneric
in classDynamicLike<T>
-
remove
-
set
-
update
-
updateGeneric
-
getElement
- Specified by:
getElement
in classDynamicLike<T>
-
getElementGeneric
- Specified by:
getElementGeneric
in classDynamicLike<T>
-
equals
-
hashCode
public int hashCode() -
toString
-
convert
-
into
-
decode
- Specified by:
decode
in classDynamicLike<T>
-
convert
-