Class DataSerializers
java.lang.Object
net.timtaran.interactivemc.network.sync.DataSerializers
Registry for custom data serializers used in network synchronization.
This class manages all custom data types that need to be serialized and transmitted over the network. Each serializer is assigned a unique ID for lookup.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.xmx.velthoric.core.network.synchronization.VxDataSerializer<PlayerBodyPart> Serializer forPlayerBodyPartenum. -
Method Summary
Modifier and TypeMethodDescriptionstatic net.xmx.velthoric.core.network.synchronization.VxDataSerializer<?> get(int id) Retrieves a registered serializer by its ID.
-
Field Details
-
BODY_PART
public static final net.xmx.velthoric.core.network.synchronization.VxDataSerializer<PlayerBodyPart> BODY_PARTSerializer forPlayerBodyPartenum.Serializes and deserializes player body part types over the network.
-
-
Method Details
-
get
public static net.xmx.velthoric.core.network.synchronization.VxDataSerializer<?> get(int id) Retrieves a registered serializer by its ID.- Parameters:
id- the serializer ID- Returns:
- the serializer, or null if not found
-