public class StorageCustomItem
extends java.lang.Object
DataFile
Constructor and Description |
---|
StorageCustomItem(org.bukkit.Material material,
short durability)
Create a new
StorageCustomItem . |
StorageCustomItem(org.bukkit.Material material,
short durability,
java.lang.String idName,
java.lang.String texture)
Create a new
StorageCustomItem . |
StorageCustomItem(StorageCustomItem sItem)
Create a new
StorageCustomItem from another
StorageCustomItem . |
StorageCustomItem(java.lang.String idName,
java.lang.String texture)
Create a new
StorageCustomItem . |
Modifier and Type | Method and Description |
---|---|
CustomItem |
getCustomItem() |
CustomItemStack |
getCustomItemStack() |
short |
getDurability() |
java.lang.String |
getIdName() |
org.bukkit.Material |
getMaterial() |
java.lang.String |
getTexture() |
StorageCustomItem |
setDurability(short durability)
Set the
StorageCustomItem 's Durability Value. |
StorageCustomItem |
setIdName(java.lang.String idName)
Set the result
CustomItem 's ID Name. |
StorageCustomItem |
setMaterial(org.bukkit.Material material)
Set the
Material of the StorageCustomItem . |
StorageCustomItem |
setTexture(java.lang.String texture)
Set the name of the texture that is a ssigned to this
StorageCustomItem 's durability point. |
public StorageCustomItem(org.bukkit.Material material, short durability, java.lang.String idName, java.lang.String texture)
StorageCustomItem
. This is just a Java Object and
won't be saved to the Data.yml file. For that, use the methods at
DataFile
.material
- The Material of the StorageCustomItem
.durability
- The Durability Value of the StorageCustomItem
idName
- The ID Name of the StorageCustomItem
texture
- The Texture Name of the StorageCustomItem
public StorageCustomItem(org.bukkit.Material material, short durability)
StorageCustomItem
. The values for the ID Name and
Texture Name will be generated form the values of the data.yml filematerial
- The Material of the StorageCustomItem
.durability
- The Durability Value of the StorageCustomItem
public StorageCustomItem(java.lang.String idName, java.lang.String texture)
StorageCustomItem
. The values for the Material and
Durability will be generated form the values of the data.yml fileidName
- The ID Name of the StorageCustomItem
texture
- The Texture Name of the StorageCustomItem
public StorageCustomItem(StorageCustomItem sItem)
StorageCustomItem
from another
StorageCustomItem
. The values of the object specified won't be
cloned, they will be the same.sItem
- The StorageCustomItem
to clone.public org.bukkit.Material getMaterial()
Material
of the StorageCustomItem
public StorageCustomItem setMaterial(org.bukkit.Material material)
Material
of the StorageCustomItem
.material
- public short getDurability()
StorageCustomItem
's Durability Value. This is not
fake durability - it's what durability the item given to the
player will actually have. This is very important for
CustomTexturedItem
s where the durability is not
predetermined, but instead defined upon server startup.public StorageCustomItem setDurability(short durability)
StorageCustomItem
's Durability Value. This is not fake
durability - it's what durability the item given to the player will
actually have. This is very important for CustomTexturedItem
s
where the durability is not predetermined, but instead defined upon
server startup.durability
- public java.lang.String getIdName()
CustomItem
's ID Name.public StorageCustomItem setIdName(java.lang.String idName)
CustomItem
's ID Name.idName
- public java.lang.String getTexture()
StorageCustomItem
's durability point.public StorageCustomItem setTexture(java.lang.String texture)
StorageCustomItem
's durability point.texture
- public CustomItemStack getCustomItemStack()
CustomItemStack
with this
StorageCustomItem
's IdName, Durability and Texture Name.public CustomItem getCustomItem()
CustomItem
with this StorageCustomItem
's
IdName, Durability and Texture Name.