Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-08 17:20:24 +01:00
Fix item deserializing
Dieser Commit ist enthalten in:
Ursprung
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;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren