use of de.Keyle.MyPet.api.util.inventory.material.ItemDatabase in project MyPet by xXKeyleXx.
the class PlatformHelper method itemstackToString.
@Override
public String itemstackToString(org.bukkit.inventory.ItemStack itemStack) {
ItemDatabase itemDatabase = MyPetApi.getServiceManager().getService(ItemDatabase.class).get();
String itemstack = itemDatabase.getByID(itemStack.getType().getKey().getKey()).getId();
if (itemStack.hasItemMeta()) {
itemstack += " " + CraftItemStack.asNMSCopy(itemStack).getTag().toString();
}
return itemstack;
}
Aggregations