mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-15 06:54:38 +01:00
9629cb84eb
- Movement of client-side trains is now controlled via network packets (Manual controls and Relocation not yet adjusted for sidedness) - Modified train settings now get broadcasted to other players - Cleaned up redundant delegation between classes involved in controlling the carriages
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")));
|
|
}
|
|
|
|
}
|