use of betterquesting.api.network.QuestingPacket in project BetterQuesting by Funwayguy.
the class PartyManager method getSyncPacket.
@Override
public QuestingPacket getSyncPacket() {
NBTTagCompound tags = new NBTTagCompound();
tags.setTag("data", writeToNBT(new NBTTagList(), EnumSaveType.CONFIG));
return new QuestingPacket(PacketTypeNative.PARTY_DATABASE.GetLocation(), tags);
}
use of betterquesting.api.network.QuestingPacket in project BetterQuesting by Funwayguy.
the class NameCache method getSyncPacket.
@Override
public QuestingPacket getSyncPacket() {
NBTTagCompound tags = new NBTTagCompound();
tags.setTag("data", this.writeToNBT(new NBTTagList(), EnumSaveType.CONFIG));
return new QuestingPacket(PacketTypeNative.NAME_CACHE.GetLocation(), tags);
}
use of betterquesting.api.network.QuestingPacket in project BetterQuesting by Funwayguy.
the class QuestSettings method getSyncPacket.
@Override
public QuestingPacket getSyncPacket() {
NBTTagCompound tags = new NBTTagCompound();
tags.setTag("data", writeToNBT(new NBTTagCompound(), EnumSaveType.CONFIG));
return new QuestingPacket(PacketTypeNative.SETTINGS.GetLocation(), tags);
}
use of betterquesting.api.network.QuestingPacket in project BetterQuesting by Funwayguy.
the class GuiPrerequisiteEditor method SendChanges.
public void SendChanges() {
NBTTagCompound tags = new NBTTagCompound();
NBTTagCompound base = new NBTTagCompound();
base.setTag("config", quest.writeToNBT(new NBTTagCompound(), EnumSaveType.CONFIG));
base.setTag("progress", quest.writeToNBT(new NBTTagCompound(), EnumSaveType.PROGRESS));
tags.setTag("data", base);
tags.setInteger("questID", QuestDatabase.INSTANCE.getKey(quest));
tags.setInteger("action", EnumPacketAction.EDIT.ordinal());
PacketSender.INSTANCE.sendToServer(new QuestingPacket(PacketTypeNative.QUEST_EDIT.GetLocation(), tags));
}
use of betterquesting.api.network.QuestingPacket in project BetterQuesting by Funwayguy.
the class GuiQuestLineEditorB method createQuest.
public void createQuest() {
NBTTagCompound tag = new NBTTagCompound();
tag.setInteger("action", EnumPacketAction.ADD.ordinal());
PacketSender.INSTANCE.sendToServer(new QuestingPacket(PacketTypeNative.QUEST_EDIT.GetLocation(), tag));
}
Aggregations