Package net.minecraft.network.syncher
Interface EntityDataSerializer<T>
- All Known Subinterfaces:
EntityDataSerializer.ForValueType<T>
public interface EntityDataSerializer<T>
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault EntityDataAccessor<T>
createAccessor
(int p_135022_) static <T> EntityDataSerializer<Optional<T>>
optional
(FriendlyByteBuf.Writer<T> p_238099_, FriendlyByteBuf.Reader<T> p_238100_) read
(FriendlyByteBuf p_135024_) static <T> EntityDataSerializer<T>
simple
(FriendlyByteBuf.Writer<T> p_238096_, FriendlyByteBuf.Reader<T> p_238097_) static <T extends Enum<T>>
EntityDataSerializer<T>simpleEnum
(Class<T> p_238091_) static <T> EntityDataSerializer<T>
void
write
(FriendlyByteBuf p_135025_, T p_135026_)
-
Method Details
-
write
-
read
-
createAccessor
-
copy
-
simple
static <T> EntityDataSerializer<T> simple(FriendlyByteBuf.Writer<T> p_238096_, FriendlyByteBuf.Reader<T> p_238097_) -
optional
static <T> EntityDataSerializer<Optional<T>> optional(FriendlyByteBuf.Writer<T> p_238099_, FriendlyByteBuf.Reader<T> p_238100_) -
simpleEnum
-
simpleId
-