Class DataSerializers

java.lang.Object
net.timtaran.interactivemc.network.sync.DataSerializers

public class DataSerializers extends Object
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 Details

    • BODY_PART

      public static final net.xmx.velthoric.core.network.synchronization.VxDataSerializer<PlayerBodyPart> BODY_PART
      Serializer for PlayerBodyPart enum.

      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