mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-22 07:22:20 +00:00
BUNCH OF NEW PACKETS
This commit is contained in:
1 parent
f2c34699b1
commit
b22105341f
50 files changed
+620
-392
No files matched your search
@@ -1,5 +1,8 @@
|
||||
package noppes.npcs.client.gui.mainmenu;
|
||||
|
||||
import kamkeel.npcs.network.PacketClient;
|
||||
import kamkeel.npcs.network.packets.request.mainmenu.MainmenuInvGetPacket;
|
||||
import kamkeel.npcs.network.packets.request.mainmenu.MainmenuInvSavePacket;
|
||||
import net.minecraft.client.gui.GuiButton;
|
||||
import net.minecraft.client.renderer.OpenGlHelper;
|
||||
import net.minecraft.client.renderer.RenderHelper;
|
||||
@@ -30,7 +33,7 @@ public class GuiNPCInv extends GuiContainerNPCInterface2 implements IGuiData, IT
|
||||
this.container = container;
|
||||
ySize = 200;
|
||||
slot = getResource("slot.png");
|
||||
Client.sendData(EnumPacketServer.MainmenuInvGet);
|
||||
PacketClient.sendClient(new MainmenuInvGetPacket());
|
||||
}
|
||||
|
||||
public void initGui()
|
||||
@@ -178,8 +181,8 @@ public class GuiNPCInv extends GuiContainerNPCInterface2 implements IGuiData, IT
|
||||
npc.inventory.dropchance = chances;
|
||||
npc.inventory.minExp = getTextField(0).getInteger();
|
||||
npc.inventory.maxExp = getTextField(1).getInteger();
|
||||
Client.sendData(EnumPacketServer.MainmenuInvSave, npc.inventory.writeEntityToNBT(new NBTTagCompound()));
|
||||
}
|
||||
PacketClient.sendClient(new MainmenuInvSavePacket(npc.inventory.writeEntityToNBT(new NBTTagCompound())));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setGuiData(NBTTagCompound compound) {
|
||||
|
||||
Reference in new issue
Block a user