mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-15 06:54:38 +01:00
19 lines
688 B
Java
19 lines
688 B
Java
|
package com.simibubi.create;
|
||
|
|
||
|
import com.simibubi.create.content.logistics.trains.entity.CarriageSyncDataSerializer;
|
||
|
|
||
|
import net.minecraftforge.event.RegistryEvent;
|
||
|
import net.minecraftforge.registries.DataSerializerEntry;
|
||
|
import net.minecraftforge.registries.IForgeRegistry;
|
||
|
|
||
|
public class AllEntityDataSerializers {
|
||
|
|
||
|
public static final CarriageSyncDataSerializer CARRIAGE_DATA = new CarriageSyncDataSerializer();
|
||
|
|
||
|
public static void register(RegistryEvent.Register<DataSerializerEntry> event) {
|
||
|
IForgeRegistry<DataSerializerEntry> registry = event.getRegistry();
|
||
|
registry.register(new DataSerializerEntry(CARRIAGE_DATA).setRegistryName(Create.asResource("carriage_data")));
|
||
|
}
|
||
|
|
||
|
}
|