mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 07:59:08 +00:00
Send Magic Info Packets
This commit is contained in:
1 parent
4e6d6b7082
commit
ba661de91f
6 files changed
+35
-14
No files matched your search
@@ -712,6 +712,21 @@ public class NoppesUtilServer {
|
||||
}
|
||||
}
|
||||
|
||||
public static void sendMagicInfo(EntityPlayerMP player, boolean cycles) {
|
||||
HashMap<String,Integer> map = new HashMap<String,Integer>();
|
||||
if(cycles){
|
||||
for(Magic magic : MagicController.getInstance().magics.values()){
|
||||
map.put(magic.name, magic.id);
|
||||
}
|
||||
sendScrollData(player, map, EnumScrollData.MAGIC);
|
||||
} else {
|
||||
for(MagicCycle magicCycle : MagicController.getInstance().cycles.values()){
|
||||
map.put(magicCycle.name, magicCycle.id);
|
||||
}
|
||||
sendScrollData(player, map, EnumScrollData.MAGIC_CYCLES);
|
||||
}
|
||||
}
|
||||
|
||||
public static DialogOption setNpcDialog(int slot, int dialogId, EntityPlayer player) throws IOException {
|
||||
return setNpcDialog(slot, dialogId, getEditingNpc(player));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user