Loadout serializers - Entropy159/Entropy-Arena GitHub Wiki

Loadout serializers are a way to extend upon the loadout system and add support for mods like Curios that have additional items. The base mod supports the following mods in addition to the vanilla inventory:

  • Curios API

You can create your own serializer in two easy steps:

Create a serializer class

This is just a class that extends LoadoutSerializer and implements the methods. You can look at the vanilla serializer to get an idea of how it works, but the exact implementation will depend on the mod you're adding compatibility for.

Register the serializer

This is as easy as adding one line in your mod's constructor, calling LoadoutSerializerRegistry.addSerializer("name", new CustomLoadoutSerializer()), replacing CustomLoadoutSerializer with your serializer class.