Package com.mojang.datafixers
Class Typed<A>
java.lang.Object
com.mojang.datafixers.Typed<A>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<FT> FT
get
(OpticFinder<FT> optic) <FT> List<FT>
getAll
(TypedOptic<A, ?, FT, ?> field) getAllTyped
(OpticFinder<FT> optic) DynamicOps<?>
getOps()
<FT> Optional<FT>
getOptional
(OpticFinder<FT> optic) getOptionalTyped
(OpticFinder<FT> optic) <FT> FT
getOrCreate
(OpticFinder<FT> optic) <FT> Typed<FT>
getOrCreateTyped
(OpticFinder<FT> optic) <FT> FT
getOrDefault
(OpticFinder<FT> optic, FT def) getType()
<FT> Typed<FT>
getTyped
(OpticFinder<FT> optic) getValue()
out()
<FT,
FR> Typed<?> set
(OpticFinder<FT> optic, Typed<FR> newValue) <FT,
FR> Typed<?> set
(OpticFinder<FT> optic, Type<FR> newType, FR newValue) <FT> Typed<?>
set
(OpticFinder<FT> optic, FT newValue) toString()
<FT,
FR> Typed<?> update
(OpticFinder<FT> optic, Type<FR> newType, Function<FT, FR> updater) <FT> Typed<?>
update
(OpticFinder<FT> optic, Function<FT, FT> updater) <FT,
FR> Typed<?> updateRecursive
(OpticFinder<FT> optic, Type<FR> newType, Function<FT, FR> updater) <FT> Typed<?>
updateRecursive
(OpticFinder<FT> optic, Function<FT, FT> updater) <FT,
FR> Typed<?> updateRecursiveTyped
(OpticFinder<FT> optic, Type<FR> newType, Function<Typed<?>, Typed<?>> updater) <FT> Typed<?>
updateRecursiveTyped
(OpticFinder<FT> optic, Function<Typed<?>, Typed<?>> updater) <FT,
FR> Typed<?> updateTyped
(OpticFinder<FT> optic, Type<FR> newType, Function<Typed<?>, Typed<?>> updater) <FT> Typed<?>
updateTyped
(OpticFinder<FT> optic, Function<Typed<?>, Typed<?>> updater) DataResult<? extends Dynamic<?>>
write()
-
Field Details
-
type
-
ops
-
value
-
-
Constructor Details
-
Typed
-
-
Method Details
-
toString
-
get
-
getTyped
-
getOptional
-
getOrCreate
-
getOrDefault
-
getOptionalTyped
-
getOrCreateTyped
-
set
-
set
-
set
-
updateTyped
-
updateTyped
-
update
-
update
-
updateRecursiveTyped
public <FT> Typed<?> updateRecursiveTyped(OpticFinder<FT> optic, Function<Typed<?>, Typed<?>> updater) -
updateRecursiveTyped
-
updateRecursive
-
updateRecursive
public <FT,FR> Typed<?> updateRecursive(OpticFinder<FT> optic, Type<FR> newType, Function<FT, FR> updater) -
getAllTyped
-
getAll
-
out
-
inj1
-
inj2
-
pair
-
getType
-
getOps
-
getValue
-
write
-