Class ItemsUtils
java.lang.Object
dev.lone.itemsadder.api.scriptinginternal.ItemsUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable CustomStackcustomStack(String namespacedId) static @Nullable CustomStackcustomStack(String namespacedId, int amount) static booleangetDataBool(CustomStack customStack, String namespace, String key, boolean def) static booleangetDataBool(ItemStack itemStack, String namespace, String key, boolean def) static bytegetDataByte(CustomStack customStack, String namespace, String key, byte def) static bytegetDataByte(ItemStack itemStack, String namespace, String key, byte def) static doublegetDataDouble(CustomStack customStack, String namespace, String key, double def) static doublegetDataDouble(ItemStack itemStack, String namespace, String key, double def) static floatgetDataFloat(CustomStack customStack, String namespace, String key, float def) static floatgetDataFloat(ItemStack itemStack, String namespace, String key, float def) static intgetDataInt(CustomStack customStack, String namespace, String key, int def) static intgetDataInt(ItemStack itemStack, String namespace, String key, int def) static longgetDataLong(CustomStack customStack, String namespace, String key, long def) static longgetDataLong(ItemStack itemStack, String namespace, String key, long def) static shortgetDataShort(CustomStack customStack, String namespace, String key, short def) static shortgetDataShort(ItemStack itemStack, String namespace, String key, short def) static StringgetDataString(CustomStack customStack, String namespace, String key, String def) static StringgetDataString(ItemStack itemStack, String namespace, String key, String def) static booleanhasData(CustomStack customStack, String namespace, String key) static booleanstatic booleanstatic ItemStackstatic ItemStackstatic voidremoveData(ItemStack itemStack, String namespace, String key) static voidsetDataBool(CustomStack customStack, String namespace, String key, boolean value) static voidsetDataBool(ItemStack itemStack, String namespace, String key, boolean value) static voidsetDataByte(CustomStack customStack, String namespace, String key, byte value) static voidsetDataByte(ItemStack itemStack, String namespace, String key, byte value) static voidsetDataDouble(CustomStack customStack, String namespace, String key, double value) static voidsetDataDouble(ItemStack itemStack, String namespace, String key, double value) static voidsetDataFloat(CustomStack customStack, String namespace, String key, float value) static voidsetDataFloat(ItemStack itemStack, String namespace, String key, float value) static voidsetDataInt(CustomStack customStack, String namespace, String key, int value) static voidsetDataInt(ItemStack itemStack, String namespace, String key, int value) static voidsetDataLong(CustomStack customStack, String namespace, String key, long value) static voidsetDataLong(ItemStack itemStack, String namespace, String key, long value) static voidsetDataShort(CustomStack customStack, String namespace, String key, short value) static voidsetDataShort(ItemStack itemStack, String namespace, String key, short value) static voidsetDataString(CustomStack customStack, String namespace, String key, String value) static voidsetDataString(ItemStack itemStack, String namespace, String key, String value)
-
Constructor Details
-
ItemsUtils
public ItemsUtils()
-
-
Method Details
-
isCustom
-
customStack
-
customStack
-
newStack
-
newStack
-
hasData
-
removeData
-
getDataByte
-
setDataByte
-
getDataShort
-
setDataShort
-
getDataInt
-
setDataInt
-
getDataLong
-
setDataLong
-
getDataFloat
-
setDataFloat
-
getDataDouble
-
setDataDouble
-
getDataBool
-
setDataBool
-
getDataString
-
setDataString
-
hasData
-
getDataByte
-
setDataByte
-
getDataShort
-
setDataShort
-
getDataInt
-
setDataInt
-
getDataLong
-
setDataLong
-
getDataFloat
-
setDataFloat
-
getDataDouble
public static double getDataDouble(CustomStack customStack, String namespace, String key, double def) -
setDataDouble
public static void setDataDouble(CustomStack customStack, String namespace, String key, double value) -
getDataBool
public static boolean getDataBool(CustomStack customStack, String namespace, String key, boolean def) -
setDataBool
public static void setDataBool(CustomStack customStack, String namespace, String key, boolean value) -
getDataString
public static String getDataString(CustomStack customStack, String namespace, String key, String def) -
setDataString
public static void setDataString(CustomStack customStack, String namespace, String key, String value)
-