mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Removed NMS package
Former-commit-id: 4b772f901eba24641fa71ae53483a9a12ba5aaa6 [formerly da45019dcb94fdc5884fd5ea590a785a8f73573a] Former-commit-id: a2ec952c8e3602f813f98e5ce49239b0c7b36851
This commit is contained in:
1 parent
3e34bab71a
commit
bec57132b3
7 files changed
+3
-115
No files matched your search
@@ -1,19 +0,0 @@
|
||||
package org.maxgamer.quickshop.Nms;
|
||||
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.craftbukkit.v1_10_R1.inventory.CraftItemStack;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
import net.minecraft.server.v1_10_R1.NBTTagCompound;
|
||||
|
||||
public class v1_10_R1 {
|
||||
public String getNBTJson(ItemStack iStack) {
|
||||
if(iStack.getType().equals(Material.AIR)) {
|
||||
return null;
|
||||
}
|
||||
net.minecraft.server.v1_10_R1.ItemStack mcitem = CraftItemStack.asNMSCopy(iStack);
|
||||
NBTTagCompound nbt = new NBTTagCompound();
|
||||
mcitem.save(nbt);
|
||||
return nbt.toString();
|
||||
}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
package org.maxgamer.quickshop.Nms;
|
||||
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.craftbukkit.v1_11_R1.inventory.CraftItemStack;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
import net.minecraft.server.v1_11_R1.NBTTagCompound;
|
||||
|
||||
public class v1_11_R1 {
|
||||
public String getNBTJson(ItemStack iStack) {
|
||||
if(iStack.getType().equals(Material.AIR)) {
|
||||
return null;
|
||||
}
|
||||
net.minecraft.server.v1_11_R1.ItemStack mcitem = CraftItemStack.asNMSCopy(iStack);
|
||||
NBTTagCompound nbt = new NBTTagCompound();
|
||||
mcitem.save(nbt);
|
||||
return nbt.toString();
|
||||
}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
package org.maxgamer.quickshop.Nms;
|
||||
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.craftbukkit.v1_12_R1.inventory.CraftItemStack;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
import net.minecraft.server.v1_12_R1.NBTTagCompound;
|
||||
|
||||
public class v1_12_R1 {
|
||||
public String getNBTJson(ItemStack iStack) {
|
||||
if(iStack.getType().equals(Material.AIR)) {
|
||||
return null;
|
||||
}
|
||||
net.minecraft.server.v1_12_R1.ItemStack mcitem = CraftItemStack.asNMSCopy(iStack);
|
||||
NBTTagCompound nbt = new NBTTagCompound();
|
||||
mcitem.save(nbt);
|
||||
return nbt.toString();
|
||||
}
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
package org.maxgamer.quickshop.Nms;
|
||||
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.craftbukkit.v1_13_R1.inventory.CraftItemStack;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import net.minecraft.server.v1_13_R1.NBTTagCompound;
|
||||
|
||||
public class v1_13_R1 {
|
||||
public String getNBTJson(ItemStack iStack) {
|
||||
if(iStack.getType().equals(Material.AIR)) {
|
||||
return null;
|
||||
}
|
||||
net.minecraft.server.v1_13_R1.ItemStack mcitem = CraftItemStack.asNMSCopy(iStack);
|
||||
NBTTagCompound nbt = new NBTTagCompound();
|
||||
mcitem.save(nbt);
|
||||
return nbt.toString();
|
||||
}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
package org.maxgamer.quickshop.Nms;
|
||||
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.craftbukkit.v1_13_R2.inventory.CraftItemStack;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
import net.minecraft.server.v1_13_R2.NBTTagCompound;
|
||||
|
||||
public class v1_13_R2 {
|
||||
public String getNBTJson(ItemStack iStack) {
|
||||
if(iStack.getType().equals(Material.AIR)) {
|
||||
return null;
|
||||
}
|
||||
net.minecraft.server.v1_13_R2.ItemStack mcitem = CraftItemStack.asNMSCopy(iStack);
|
||||
NBTTagCompound nbt = new NBTTagCompound();
|
||||
mcitem.save(nbt);
|
||||
return nbt.toString();
|
||||
}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
package org.maxgamer.quickshop.Nms;
|
||||
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.craftbukkit.v1_9_R2.inventory.CraftItemStack;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
import net.minecraft.server.v1_9_R2.NBTTagCompound;
|
||||
|
||||
public class v1_9_R2 {
|
||||
public String getNBTJson(ItemStack iStack) {
|
||||
if(iStack.getType().equals(Material.AIR)) {
|
||||
return null;
|
||||
}
|
||||
net.minecraft.server.v1_9_R2.ItemStack mcitem = CraftItemStack.asNMSCopy(iStack);
|
||||
NBTTagCompound nbt = new NBTTagCompound();
|
||||
mcitem.save(nbt);
|
||||
return nbt.toString();
|
||||
}
|
||||
}
|
||||
@@ -1,11 +1,11 @@
|
||||
package org.maxgamer.quickshop.Util;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.maxgamer.quickshop.QuickShop;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
public abstract class ItemNMS {
|
||||
private static final String nmsVersion;
|
||||
|
||||
@@ -29,6 +29,7 @@ public abstract class ItemNMS {
|
||||
} catch (Throwable t) {
|
||||
QuickShop.instance.getLogger().info("A error happend:");
|
||||
t.printStackTrace();
|
||||
QuickShop.instance.getLogger().info("Try update QSRR. And feedback this bug on issue tracker.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user