Transferred to DBC Addon

This commit is contained in:
Kam committed 2024-04-23 04:42:16 -04:00
1 parent 19f0cc16b2
commit 38f5089af9
4 files changed
-16

No files matched your search

@@ -39,9 +39,6 @@ public class DBCAddon {
// Client Sync
public void syncPlayer(EntityPlayerMP playerMP){}
public void clientSync(NBTTagCompound compound, boolean syncEnd){}
public void syncUpdate(NBTTagCompound compound, ByteBuf buffer){}
public void syncRemove(int id){}
// Packet Handling
@@ -124,7 +124,6 @@ public class PacketHandlerClient extends PacketHandlerServer{
else if(type == EnumPacketClient.SYNC_ADD || type == EnumPacketClient.SYNC_END){
int synctype = buffer.readInt();
NBTTagCompound compound = Server.readNBT(buffer);
SyncController.clientSync(synctype, compound, type == EnumPacketClient.SYNC_END);
}
else if(type == EnumPacketClient.SYNC_UPDATE){
@@ -7,7 +7,4 @@ public class SyncType {
public static final int DIALOG = 4;
public static final int DIALOG_CATEGORY = 5;
public static final int PLAYER_DATA = 6;
// DBC ADDON
public static final int CUSTOM_FORM = 7;
}
@@ -253,9 +253,6 @@ public class SyncController {
DialogController.Instance.categoriesSync = new HashMap<Integer, DialogCategory>();
}
}
else if(synctype == SyncType.CUSTOM_FORM){
DBCAddon.instance.clientSync(compound, syncEnd);
}
}
public static void clientSyncUpdate(int synctype, NBTTagCompound compound, ByteBuf buffer) {
@@ -314,9 +311,6 @@ public class SyncController {
}
QuestController.Instance.categories.put(category.id, category);
}
else if(synctype == SyncType.CUSTOM_FORM){
DBCAddon.instance.syncUpdate(compound, buffer);
}
}
public static void clientSyncRemove(int synctype, int id) {
@@ -347,9 +341,6 @@ public class SyncController {
QuestController.Instance.quests.keySet().removeAll(category.quests.keySet());
}
}
else if(synctype == SyncType.CUSTOM_FORM){
DBCAddon.instance.syncRemove(id);
}
}
}