mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-22 07:22:20 +00:00
Smaller Sync Packets for Quest / Dialog / Faction Data
This commit is contained in:
1 parent
b3846e32c8
commit
8c3b46d4f4
10 files changed
+267
-94
No files matched your search
@@ -48,6 +48,17 @@ public class DialogCategory implements IDialogCategory {
|
||||
return dialogCat;
|
||||
}
|
||||
|
||||
public NBTTagCompound writeSmallNBT(NBTTagCompound dialogCat) {
|
||||
dialogCat.setInteger("Slot", id);
|
||||
dialogCat.setString("Title", title);
|
||||
return dialogCat;
|
||||
}
|
||||
|
||||
public void readSmallNBT(NBTTagCompound compound){
|
||||
id = compound.getInteger("Slot");
|
||||
title = compound.getString("Title");
|
||||
}
|
||||
|
||||
public List<IDialog> dialogs() {
|
||||
return new ArrayList(this.dialogs.values());
|
||||
}
|
||||
|
||||
@@ -47,7 +47,17 @@ public class QuestCategory implements IQuestCategory {
|
||||
|
||||
return nbttagcompound;
|
||||
}
|
||||
|
||||
|
||||
public NBTTagCompound writeSmallNBT(NBTTagCompound nbttagcompound) {
|
||||
nbttagcompound.setInteger("Slot", id);
|
||||
nbttagcompound.setString("Title", title);
|
||||
return nbttagcompound;
|
||||
}
|
||||
|
||||
public void readSmallNBT(NBTTagCompound nbttagcompound) {
|
||||
id = nbttagcompound.getInteger("Slot");
|
||||
title = nbttagcompound.getString("Title");
|
||||
}
|
||||
|
||||
public List<IQuest> quests() {
|
||||
return new ArrayList(this.quests.values());
|
||||
|
||||
Reference in new issue
Block a user