Package dev.linwood.itemmods.api.item
Class CustomItem
- java.lang.Object
-
- dev.linwood.itemmods.api.item.CustomItem
-
- All Implemented Interfaces:
CustomElement<ItemAsset>
public class CustomItem extends java.lang.Object implements CustomElement<ItemAsset>
-
-
Constructor Summary
Constructors Constructor Description CustomItem(@NotNull org.bukkit.inventory.ItemStack itemStack)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure()
@Nullable ItemAsset
getConfig()
@NotNull java.lang.String
getData()
@NotNull org.bukkit.inventory.ItemStack
getItemStack()
@Nullable PackObject
getPackObject()
void
setData(@NotNull java.lang.String data)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface dev.linwood.itemmods.api.CustomElement
isCustom
-
-
-
-
Method Detail
-
getConfig
@Nullable public @Nullable ItemAsset getConfig()
- Specified by:
getConfig
in interfaceCustomElement<ItemAsset>
-
configure
public void configure()
- Specified by:
configure
in interfaceCustomElement<ItemAsset>
-
getData
@NotNull public @NotNull java.lang.String getData()
- Specified by:
getData
in interfaceCustomElement<ItemAsset>
-
setData
public void setData(@NotNull @NotNull java.lang.String data)
- Specified by:
setData
in interfaceCustomElement<ItemAsset>
-
getPackObject
@Nullable public @Nullable PackObject getPackObject()
- Specified by:
getPackObject
in interfaceCustomElement<ItemAsset>
-
getItemStack
@NotNull public @NotNull org.bukkit.inventory.ItemStack getItemStack()
-
-