public class Utils extends Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static org.bukkit.inventory.ItemStack |
decode(String string)
Decodes an
ItemStack from a Base64 String |
static String |
encode(org.bukkit.inventory.ItemStack itemStack)
Encodes an
ItemStack in a Base64 String |
static int |
getAmount(org.bukkit.inventory.Inventory inventory,
org.bukkit.inventory.ItemStack itemStack)
Gets the amount of items in an inventory
|
static int |
getMajorVersion() |
static String |
getServerVersion() |
static boolean |
isUUID(String string)
Checks if a given String is a UUID
|
public static int getAmount(org.bukkit.inventory.Inventory inventory, org.bukkit.inventory.ItemStack itemStack)
inventory
- The inventory, in which the items are counteditemStack
- The items to countpublic static String getServerVersion()
public static int getMajorVersion()
public static boolean isUUID(String string)
string
- String to checkpublic static String encode(org.bukkit.inventory.ItemStack itemStack)
ItemStack
in a Base64 StringitemStack
- ItemStack
to encodepublic static org.bukkit.inventory.ItemStack decode(String string)
ItemStack
from a Base64 Stringstring
- Base64 encoded String to decodeItemStack
Copyright © 2016. All rights reserved.