public class MythicItem extends Object implements Comparable<MythicItem>
Constructor and Description |
---|
MythicItem(String file,
String internalName,
MythicConfig mc) |
Modifier and Type | Method and Description |
---|---|
static org.bukkit.inventory.ItemStack |
addItemNBT(org.bukkit.inventory.ItemStack itemStack,
String baseKey,
Map<String,String> pairs) |
int |
compareTo(MythicItem o) |
AbstractItemStack |
generateItemStack(DropMetadata meta,
int amount) |
AbstractItemStack |
generateItemStack(int amount)
Generates and returns an item based on this MythicItem
|
AbstractItemStack |
generateItemStack(int amount,
AbstractEntity dropper,
AbstractEntity trigger)
Deprecated.
|
int |
getAmount() |
MythicConfig |
getConfig()
Gets the item's configuration section
|
String |
getDisplayName()
Gets the item's display name
|
String |
getFile()
Returns the path to the file the item is in
|
String |
getInternalName()
Gets the item's internal name
|
List<String> |
getLore()
Gets the item's lore
|
org.bukkit.Material |
getMaterial()
Gets the item's material
|
int |
getMaterialData()
Deprecated.
|
String |
getMaterialName()
Deprecated.
|
public MythicItem(String file, String internalName, MythicConfig mc)
public String getInternalName()
public MythicConfig getConfig()
MythicConfig
public String getFile()
public String getDisplayName()
public org.bukkit.Material getMaterial()
@Deprecated public String getMaterialName()
@Deprecated public int getMaterialData()
public int getAmount()
public AbstractItemStack generateItemStack(int amount)
amount
- The amount of items to generate@Deprecated public AbstractItemStack generateItemStack(int amount, AbstractEntity dropper, AbstractEntity trigger)
public AbstractItemStack generateItemStack(DropMetadata meta, int amount)
public static org.bukkit.inventory.ItemStack addItemNBT(org.bukkit.inventory.ItemStack itemStack, String baseKey, Map<String,String> pairs)
public int compareTo(MythicItem o)
compareTo
in interface Comparable<MythicItem>
Copyright © 2020. All rights reserved.