com.mojang.datafixers

public abstract class DynamicLike<T>

com.mojang.datafixers.DynamicLike

Field summary

Modifier and TypeField
protected final DynamicOps<T>
ops

Constructor summary

ModifierConstructor
public (DynamicOps<T> arg0)

Method summary

Modifier and TypeMethod
public DynamicOps<T>
getOps()
public abstract Optional<Number>
asNumber()
public abstract Optional<String>
asString()
public abstract Optional<Stream<Dynamic<T>>>
asStreamOpt()
public abstract Optional<ByteBuffer>
asByteBufferOpt()
public abstract Optional<IntStream>
asIntStreamOpt()
public abstract Optional<LongStream>
asLongStreamOpt()
public abstract OptionalDynamic<T>
get(String arg0)
public abstract Optional<T>
getGeneric(T arg0)
public abstract Optional<T>
getElement(String arg0)
public abstract Optional<T>
getElementGeneric(T arg0)
public abstract <U> Optional<List<U>>
asListOpt(Function<Dynamic<T>, U> arg0)
public abstract <K, V> Optional<Map<K, V>>
asMapOpt(Function<Dynamic<T>, K> arg0, Function<Dynamic<T>, V> arg1)
public Number
asNumber(Number arg0)
public int
asInt(int arg0)
public long
asLong(long arg0)
public float
asFloat(float arg0)
public double
asDouble(double arg0)
public byte
asByte(byte arg0)
public short
asShort(short arg0)
public boolean
asBoolean(boolean arg0)
public String
asString(String arg0)
public Stream<Dynamic<T>>
asStream()
public ByteBuffer
asByteBuffer()
public IntStream
asIntStream()
public LongStream
asLongStream()
public <U> List<U>
asList(Function<Dynamic<T>, U> arg0)
public <K, V> Map<K, V>
asMap(Function<Dynamic<T>, K> arg0, Function<Dynamic<T>, V> arg1)
public T
getElement(String arg0, T arg1)
public T
getElementGeneric(T arg0, T arg1)
public Dynamic<T>
emptyList()
public Dynamic<T>
emptyMap()
public Dynamic<T>
createNumeric(Number arg0)
public Dynamic<T>
createByte(byte arg0)
public Dynamic<T>
createShort(short arg0)
public Dynamic<T>
createInt(int arg0)
public Dynamic<T>
createLong(long arg0)
public Dynamic<T>
createFloat(float arg0)
public Dynamic<T>
createDouble(double arg0)
public Dynamic<T>
createBoolean(boolean arg0)
public Dynamic<T>
createString(String arg0)
public Dynamic<T>
createList(Stream<? extends Dynamic<?>> arg0)
public Dynamic<T>
createMap(Map<? extends Dynamic<?>, ? extends Dynamic<?>> arg0)
public Dynamic<?>
createByteList(ByteBuffer arg0)
public Dynamic<?>
createIntList(IntStream arg0)
public Dynamic<?>
createLongList(LongStream arg0)