package com.github.steveice10.mc.protocol.packet.ingame.server.window;

import com.github.steveice10.mc.protocol.packet.MinecraftPacket;
import com.github.steveice10.packetlib.io.NetInput;
import com.github.steveice10.packetlib.io.NetOutput;

import java.io.IOException;

public class ServerPreparedCraftingGridPacket extends MinecraftPacket {
    private int windowId;
    private int recipeId;

    @SuppressWarnings("unused")
    private ServerPreparedCraftingGridPacket() {
    }

    public ServerPreparedCraftingGridPacket(int windowId, int recipeId) {
        this.windowId = windowId;
        this.recipeId = recipeId;
    }

    public int getWindowId() {
        return this.windowId;
    }

    public int getRecipeId() {
        return this.recipeId;
    }

    @Override
    public void read(NetInput in) throws IOException {
        this.windowId = in.readByte();
        this.recipeId = in.readVarInt();
    }

    @Override
    public void write(NetOutput out) throws IOException {
        out.writeByte(this.windowId);
        out.writeVarInt(this.recipeId);
    }
}

@@ -375,19 +375,22 @@
 private 
+Str
 in
-t
+g
  recipeI
@@ -539,19 +539,22 @@
 ndowId, 
+Str
 in
-t
+g
  recipeI
@@ -708,27 +708,30 @@
 %0A    public 
+Str
 in
-t
+g
  getRecipeId
@@ -911,22 +911,22 @@
  in.read
-VarInt
+String
 ();%0A    
@@ -1059,14 +1059,14 @@
 rite
-VarInt
+String
 (thi

Update ServerPreparedCraftingGridPacket