mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-29 21:43:30 +01:00
Fix item deserializing
This commit is contained in:
parent
2d0209b221
commit
50395da626
@ -1,6 +1,7 @@
|
|||||||
package us.myles.ViaVersion.api.minecraft.item;
|
package us.myles.ViaVersion.api.minecraft.item;
|
||||||
|
|
||||||
import com.github.steveice10.opennbt.tag.builtin.CompoundTag;
|
import com.github.steveice10.opennbt.tag.builtin.CompoundTag;
|
||||||
|
import com.google.gson.annotations.SerializedName;
|
||||||
import lombok.*;
|
import lombok.*;
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
@ -10,6 +11,7 @@ import lombok.*;
|
|||||||
@ToString
|
@ToString
|
||||||
@EqualsAndHashCode
|
@EqualsAndHashCode
|
||||||
public class Item {
|
public class Item {
|
||||||
|
@SerializedName(value = "identifier", alternate = "id")
|
||||||
private int identifier;
|
private int identifier;
|
||||||
private byte amount;
|
private byte amount;
|
||||||
private short data;
|
private short data;
|
||||||
|
Loading…
Reference in New Issue
Block a user