Class LambdaDataSerializer<T>
java.lang.Object
com.pixelmonmod.pixelmon.api.data.LambdaDataSerializer<T>
- All Implemented Interfaces:
net.minecraft.network.syncher.EntityDataSerializer<T>
public class LambdaDataSerializer<T>
extends Object
implements net.minecraft.network.syncher.EntityDataSerializer<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.network.syncher.EntityDataSerializer
net.minecraft.network.syncher.EntityDataSerializer.ForValueType<T extends Object>
-
Constructor Summary
ConstructorDescriptionLambdaDataSerializer
(BiConsumer<net.minecraft.network.FriendlyByteBuf, T> write, Function<net.minecraft.network.FriendlyByteBuf, T> read, Function<T, T> copy) -
Method Summary
-
Constructor Details
-
LambdaDataSerializer
-
-
Method Details
-
write
- Specified by:
write
in interfacenet.minecraft.network.syncher.EntityDataSerializer<T>
-
read
- Specified by:
read
in interfacenet.minecraft.network.syncher.EntityDataSerializer<T>
-
createAccessor
- Specified by:
createAccessor
in interfacenet.minecraft.network.syncher.EntityDataSerializer<T>
-
copy
- Specified by:
copy
in interfacenet.minecraft.network.syncher.EntityDataSerializer<T>
-