package us.myles.ViaVersion.api.minecraft.item;

import com.github.steveice10.opennbt.tag.builtin.CompoundTag;
import lombok.*;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@ToString
@EqualsAndHashCode
public class Item {
    private int identifier;
    private byte amount;
    private short data;
    private CompoundTag tag;

    @Deprecated
    public short getId() {
        return (short) identifier;
    }

    @Deprecated
    public void setId(short id) {
        identifier = id;
    }

    @Deprecated
    public Item(short id, byte amount, short data, CompoundTag tag) {
        this.identifier = id;
        this.amount = amount;
        this.data = data;
        this.tag = tag;
    }
}

@@ -104,16 +104,67 @@
 undTag;%0A
+import com.google.gson.annotations.SerializedName;%0A
 import l
@@ -277,16 +277,76 @@
  Item %7B%0A
+    @SerializedName(value = %22identifier%22, alternate = %22id%22)%0A
     priv

Fix item deserializing