2022-03-08 03:51:03 +01:00
|
|
|
package com.simibubi.create;
|
|
|
|
|
|
|
|
import com.simibubi.create.content.logistics.trains.entity.CarriageSyncDataSerializer;
|
|
|
|
|
2022-08-05 20:39:34 +02:00
|
|
|
import net.minecraftforge.eventbus.api.IEventBus;
|
2022-03-08 03:51:03 +01:00
|
|
|
import net.minecraftforge.registries.DataSerializerEntry;
|
2022-08-05 20:39:34 +02:00
|
|
|
import net.minecraftforge.registries.DeferredRegister;
|
|
|
|
import net.minecraftforge.registries.ForgeRegistries;
|
|
|
|
import net.minecraftforge.registries.RegistryObject;
|
2022-03-08 03:51:03 +01:00
|
|
|
|
|
|
|
public class AllEntityDataSerializers {
|
2022-08-05 20:39:34 +02:00
|
|
|
private static final DeferredRegister<DataSerializerEntry> REGISTER = DeferredRegister.create(ForgeRegistries.Keys.DATA_SERIALIZERS, Create.ID);
|
2022-03-08 03:51:03 +01:00
|
|
|
|
|
|
|
public static final CarriageSyncDataSerializer CARRIAGE_DATA = new CarriageSyncDataSerializer();
|
|
|
|
|
2022-08-05 20:39:34 +02:00
|
|
|
public static final RegistryObject<DataSerializerEntry> CARRIAGE_DATA_ENTRY = REGISTER.register("carriage_data", () -> new DataSerializerEntry(CARRIAGE_DATA));
|
2022-03-08 03:51:03 +01:00
|
|
|
|
2022-08-05 20:39:34 +02:00
|
|
|
public static void register(IEventBus modEventBus) {
|
|
|
|
REGISTER.register(modEventBus);
|
|
|
|
}
|
2022-03-08 03:51:03 +01:00
|
|
|
}
|