mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-02-02 11:21:20 +01:00
!Fixed typos in NMS code
This commit is contained in:
parent
d5114e289f
commit
f0665dfd68
@ -120,15 +120,16 @@ public class NMSHandler_1_12_R1 implements NMSHandler {
|
||||
|
||||
@Override
|
||||
public NBTItem getNBTItem(org.bukkit.inventory.ItemStack item) {
|
||||
return new NBTItem_v1_12_1(item);
|
||||
return new NBTItem_v1_12_R1(item);
|
||||
}
|
||||
|
||||
public class NBTItem_v1_12_1 extends NBTItem {
|
||||
private ItemStack nms;
|
||||
private NBTTagCompound compound;
|
||||
public class NBTItem_v1_12_R1 extends NBTItem {
|
||||
private final ItemStack nms;
|
||||
private final NBTTagCompound compound;
|
||||
|
||||
public NBTItem_v1_12_1(org.bukkit.inventory.ItemStack item) {
|
||||
public NBTItem_v1_12_R1(org.bukkit.inventory.ItemStack item) {
|
||||
super(item);
|
||||
|
||||
nms = CraftItemStack.asNMSCopy(item);
|
||||
compound = nms.hasTag() ? nms.getTag() : new NBTTagCompound();
|
||||
}
|
||||
|
@ -119,15 +119,16 @@ public class NMSHandler_1_13_R1 implements NMSHandler {
|
||||
|
||||
@Override
|
||||
public NBTItem getNBTItem(org.bukkit.inventory.ItemStack item) {
|
||||
return new NBTItem_v1_13_2(item);
|
||||
return new NBTItem_v1_13_R1(item);
|
||||
}
|
||||
|
||||
public class NBTItem_v1_13_2 extends NBTItem {
|
||||
private ItemStack nms;
|
||||
private NBTTagCompound compound;
|
||||
public class NBTItem_v1_13_R1 extends NBTItem {
|
||||
private final ItemStack nms;
|
||||
private final NBTTagCompound compound;
|
||||
|
||||
public NBTItem_v1_13_2(org.bukkit.inventory.ItemStack item) {
|
||||
public NBTItem_v1_13_R1(org.bukkit.inventory.ItemStack item) {
|
||||
super(item);
|
||||
|
||||
nms = CraftItemStack.asNMSCopy(item);
|
||||
compound = nms.hasTag() ? nms.getTag() : new NBTTagCompound();
|
||||
}
|
||||
|
@ -119,14 +119,14 @@ public class NMSHandler_1_13_R2 implements NMSHandler {
|
||||
|
||||
@Override
|
||||
public NBTItem getNBTItem(org.bukkit.inventory.ItemStack item) {
|
||||
return new NBTItem_v1_13_2(item);
|
||||
return new NBTItem_v1_13_R2(item);
|
||||
}
|
||||
|
||||
public class NBTItem_v1_13_2 extends NBTItem {
|
||||
private ItemStack nms;
|
||||
private NBTTagCompound compound;
|
||||
public class NBTItem_v1_13_R2 extends NBTItem {
|
||||
private final ItemStack nms;
|
||||
private final NBTTagCompound compound;
|
||||
|
||||
public NBTItem_v1_13_2(org.bukkit.inventory.ItemStack item) {
|
||||
public NBTItem_v1_13_R2(org.bukkit.inventory.ItemStack item) {
|
||||
super(item);
|
||||
|
||||
nms = CraftItemStack.asNMSCopy(item);
|
||||
|
@ -139,14 +139,14 @@ public class NMSHandler_1_14_R1 implements NMSHandler {
|
||||
|
||||
@Override
|
||||
public NBTItem getNBTItem(org.bukkit.inventory.ItemStack item) {
|
||||
return new NBTItem_v1_13_2(item);
|
||||
return new NBTItem_v1_14_R1(item);
|
||||
}
|
||||
|
||||
public class NBTItem_v1_13_2 extends NBTItem {
|
||||
private ItemStack nms;
|
||||
private NBTTagCompound compound;
|
||||
public class NBTItem_v1_14_R1 extends NBTItem {
|
||||
private final ItemStack nms;
|
||||
private final NBTTagCompound compound;
|
||||
|
||||
public NBTItem_v1_13_2(org.bukkit.inventory.ItemStack item) {
|
||||
public NBTItem_v1_14_R1(org.bukkit.inventory.ItemStack item) {
|
||||
super(item);
|
||||
|
||||
nms = CraftItemStack.asNMSCopy(item);
|
||||
|
Loading…
Reference in New Issue
Block a user