SyncController

This commit is contained in:
Kam committed 2025-01-30 09:26:10 -05:00
1 parent ee8527f261
commit fb496ce1e2
12 files changed
+24 -53

No files matched your search

@@ -1,6 +1,6 @@
package kamkeel.npcs.command;
import kamkeel.npcs.controllers.SyncMaster;
import kamkeel.npcs.controllers.SyncController;
import net.minecraft.command.CommandBase;
import net.minecraft.command.CommandException;
import net.minecraft.command.ICommandSender;
@@ -89,7 +89,7 @@ public class DialogCommand extends CommandKamkeelBase {
)
public void reload(ICommandSender sender, String args[]){
new DialogController().load();
SyncMaster.syncAllDialogs();
SyncController.syncAllDialogs();
sendResult(sender, "Dialogs Reloaded");
}
@@ -1,6 +1,6 @@
package kamkeel.npcs.command;
import kamkeel.npcs.controllers.SyncMaster;
import kamkeel.npcs.controllers.SyncController;
import kamkeel.npcs.network.PacketUtil;
import net.minecraft.command.CommandException;
import net.minecraft.command.ICommandSender;
@@ -381,7 +381,7 @@ public class QuestCommand extends CommandKamkeelBase {
)
public void reload(ICommandSender sender, String args[]){
new QuestController().load();
SyncMaster.syncAllQuests();
SyncController.syncAllQuests();
sendResult(sender, "Quests Reloaded");
}
}
@@ -3,7 +3,7 @@ package kamkeel.npcs.network.packets.client.large;
import cpw.mods.fml.relauncher.Side;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import kamkeel.npcs.controllers.SyncMaster;
import kamkeel.npcs.controllers.SyncController;
import kamkeel.npcs.network.LargeAbstractPacket;
import kamkeel.npcs.network.PacketChannel;
import kamkeel.npcs.network.PacketHandler;
@@ -89,13 +89,13 @@ public final class LargeSyncPacket extends LargeAbstractPacket {
private void handleSyncPacketClient(EnumSyncType enumSyncType, EnumSyncAction enumSyncAction, int id, NBTTagCompound data) {
switch (enumSyncAction) {
case RELOAD:
SyncMaster.clientSync(enumSyncType, data);
SyncController.clientSync(enumSyncType, data);
break;
case UPDATE:
SyncMaster.clientUpdate(enumSyncType, id, data);
SyncController.clientUpdate(enumSyncType, id, data);
break;
case REMOVE:
SyncMaster.clientSyncRemove(enumSyncType, id);
SyncController.clientSyncRemove(enumSyncType, id);
break;
}
}