Package com.mojang.serialization.codecs
Class RecordCodecBuilder.Instance<O>
java.lang.Object
com.mojang.serialization.codecs.RecordCodecBuilder.Instance<O>
- All Implemented Interfaces:
App<com.mojang.serialization.codecs.RecordCodecBuilder.Instance.Mu<O>,
,RecordCodecBuilder.Mu<O>> Applicative<RecordCodecBuilder.Mu<O>,
,com.mojang.serialization.codecs.RecordCodecBuilder.Instance.Mu<O>> Functor<RecordCodecBuilder.Mu<O>,
,com.mojang.serialization.codecs.RecordCodecBuilder.Instance.Mu<O>> Kind1<RecordCodecBuilder.Mu<O>,
com.mojang.serialization.codecs.RecordCodecBuilder.Instance.Mu<O>>
- Enclosing class:
- RecordCodecBuilder<O,
F>
public static final class RecordCodecBuilder.Instance<O>
extends Object
implements Applicative<RecordCodecBuilder.Mu<O>,com.mojang.serialization.codecs.RecordCodecBuilder.Instance.Mu<O>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<A,
B, R> App<RecordCodecBuilder.Mu<O>, R> ap2
(App<RecordCodecBuilder.Mu<O>, BiFunction<A, B, R>> func, App<RecordCodecBuilder.Mu<O>, A> a, App<RecordCodecBuilder.Mu<O>, B> b) <T1,
T2, T3, R>
App<RecordCodecBuilder.Mu<O>,R> ap3
(App<RecordCodecBuilder.Mu<O>, Function3<T1, T2, T3, R>> func, App<RecordCodecBuilder.Mu<O>, T1> t1, App<RecordCodecBuilder.Mu<O>, T2> t2, App<RecordCodecBuilder.Mu<O>, T3> t3) <T1,
T2, T3, T4, R>
App<RecordCodecBuilder.Mu<O>,R> ap4
(App<RecordCodecBuilder.Mu<O>, Function4<T1, T2, T3, T4, R>> func, App<RecordCodecBuilder.Mu<O>, T1> t1, App<RecordCodecBuilder.Mu<O>, T2> t2, App<RecordCodecBuilder.Mu<O>, T3> t3, App<RecordCodecBuilder.Mu<O>, T4> t4) <A> App<RecordCodecBuilder.Mu<O>,
A> deprecated
(A a, int since) <A,
R> Function<App<RecordCodecBuilder.Mu<O>, A>, App<RecordCodecBuilder.Mu<O>, R>> lift1
(App<RecordCodecBuilder.Mu<O>, Function<A, R>> function) <T,
R> App<RecordCodecBuilder.Mu<O>, R> map
(Function<? super T, ? extends R> func, App<RecordCodecBuilder.Mu<O>, T> ts) <A> App<RecordCodecBuilder.Mu<O>,
A> point
(A a) <A> App<RecordCodecBuilder.Mu<O>,
A> <A> App<RecordCodecBuilder.Mu<O>,
A> stable
(A a) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Instance
public Instance()
-
-
Method Details
-
stable
-
deprecated
-
point
-
point
- Specified by:
point
in interfaceApplicative<RecordCodecBuilder.Mu<O>,
com.mojang.serialization.codecs.RecordCodecBuilder.Instance.Mu<O>>
-
lift1
public <A,R> Function<App<RecordCodecBuilder.Mu<O>,A>, lift1App<RecordCodecBuilder.Mu<O>, R>> (App<RecordCodecBuilder.Mu<O>, Function<A, R>> function) - Specified by:
lift1
in interfaceApplicative<RecordCodecBuilder.Mu<O>,
com.mojang.serialization.codecs.RecordCodecBuilder.Instance.Mu<O>>
-
ap2
public <A,B, App<RecordCodecBuilder.Mu<O>,R> R> ap2(App<RecordCodecBuilder.Mu<O>, BiFunction<A, B, R>> func, App<RecordCodecBuilder.Mu<O>, A> a, App<RecordCodecBuilder.Mu<O>, B> b) - Specified by:
ap2
in interfaceApplicative<RecordCodecBuilder.Mu<O>,
com.mojang.serialization.codecs.RecordCodecBuilder.Instance.Mu<O>>
-
ap3
public <T1,T2, App<RecordCodecBuilder.Mu<O>,T3, R> R> ap3(App<RecordCodecBuilder.Mu<O>, Function3<T1, T2, T3, R>> func, App<RecordCodecBuilder.Mu<O>, T1> t1, App<RecordCodecBuilder.Mu<O>, T2> t2, App<RecordCodecBuilder.Mu<O>, T3> t3) - Specified by:
ap3
in interfaceApplicative<RecordCodecBuilder.Mu<O>,
com.mojang.serialization.codecs.RecordCodecBuilder.Instance.Mu<O>>
-
ap4
public <T1,T2, App<RecordCodecBuilder.Mu<O>,T3, T4, R> R> ap4(App<RecordCodecBuilder.Mu<O>, Function4<T1, T2, T3, T4, R>> func, App<RecordCodecBuilder.Mu<O>, T1> t1, App<RecordCodecBuilder.Mu<O>, T2> t2, App<RecordCodecBuilder.Mu<O>, T3> t3, App<RecordCodecBuilder.Mu<O>, T4> t4) - Specified by:
ap4
in interfaceApplicative<RecordCodecBuilder.Mu<O>,
com.mojang.serialization.codecs.RecordCodecBuilder.Instance.Mu<O>>
-
map
public <T,R> App<RecordCodecBuilder.Mu<O>,R> map(Function<? super T, ? extends R> func, App<RecordCodecBuilder.Mu<O>, T> ts) - Specified by:
map
in interfaceFunctor<RecordCodecBuilder.Mu<O>,
com.mojang.serialization.codecs.RecordCodecBuilder.Instance.Mu<O>>
-