com.mineblown.challengescript.scripting
Class ScriptPlayerArmor

java.lang.Object
  extended by com.mineblown.challengescript.scripting.ScriptPlayerArmor

public class ScriptPlayerArmor
extends java.lang.Object


Constructor Summary
ScriptPlayerArmor(org.bukkit.inventory.ItemStack[] inArmor)
           
 
Method Summary
 java.lang.String getBoots()
          Gets the name of the item currently in the boot slot.
 short getBootsDurability()
          Gets the current durability of the boots.
 java.lang.String getChestplate()
          Gets the name of the item currently in the chest slot.
 short getChestplateDurability()
          Gets the current durability of the chestplate.
 java.lang.String getHelmet()
          Gets the name of the item currently in the helmet slot.
 short getHelmetDurability()
          Gets the current durability of the helmet.
 org.bukkit.inventory.ItemStack[] getItems()
           
 java.lang.String getLeggins()
          Gets the name of the item currently in the leggins slot.
 short getLegginsDurability()
          Gets the current durability of the leggins.
 void setBoots(java.lang.String inName)
          Sets the type of the current boots.
 void setBootsDurability(short inDurability)
          Sets the durability of the current boots.
 void setChestplate(java.lang.String inName)
          Sets the type of the current chestplate.
 void setChestplateDurability(short inDurability)
          Sets the durability of the current chestplate.
 void setHelmet(java.lang.String inName)
          Sets the type of the current helmet.
 void setHelmetDurability(short inDurability)
          Sets the durability of the current helmet.
 void setLeggins(java.lang.String inName)
          Sets the type of the current leggins.
 void setLegginsDurability(short inDurability)
          Sets the durability of the current leggins.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptPlayerArmor

public ScriptPlayerArmor(org.bukkit.inventory.ItemStack[] inArmor)
Method Detail

getHelmet

public java.lang.String getHelmet()
Gets the name of the item currently in the helmet slot.

Returns:
Name of the item, empty if no item.

setHelmet

public void setHelmet(java.lang.String inName)
Sets the type of the current helmet. Does not reset the durability!

Parameters:
inName - Type of new helmet.

setHelmetDurability

public void setHelmetDurability(short inDurability)
Sets the durability of the current helmet.

Parameters:
inDurability - New durability

getHelmetDurability

public short getHelmetDurability()
Gets the current durability of the helmet.

Returns:
A representing the durability of the helmet

getChestplate

public java.lang.String getChestplate()
Gets the name of the item currently in the chest slot.

Returns:
Name of the item, empty if no item.

setChestplate

public void setChestplate(java.lang.String inName)
Sets the type of the current chestplate. Does not reset the durability!

Parameters:
inName - Type of new chestplate.

setChestplateDurability

public void setChestplateDurability(short inDurability)
Sets the durability of the current chestplate.

Parameters:
inDurability - New durability

getChestplateDurability

public short getChestplateDurability()
Gets the current durability of the chestplate.

Returns:
A representing the durability of the chestplate

getLeggins

public java.lang.String getLeggins()
Gets the name of the item currently in the leggins slot.

Returns:
Name of the item, empty if no item.

setLeggins

public void setLeggins(java.lang.String inName)
Sets the type of the current leggins. Does not reset the durability!

Parameters:
inName - Type of new leggins.

setLegginsDurability

public void setLegginsDurability(short inDurability)
Sets the durability of the current leggins.

Parameters:
inDurability - New durability

getLegginsDurability

public short getLegginsDurability()
Gets the current durability of the leggins.

Returns:
A representing the durability of the leggins

getBoots

public java.lang.String getBoots()
Gets the name of the item currently in the boot slot.

Returns:
Name of the item, empty if no item.

setBoots

public void setBoots(java.lang.String inName)
Sets the type of the current boots. Does not reset the durability!

Parameters:
inName - Type of new boots.

setBootsDurability

public void setBootsDurability(short inDurability)
Sets the durability of the current boots.

Parameters:
inDurability - New durability

getBootsDurability

public short getBootsDurability()
Gets the current durability of the boots.

Returns:
A representing the durability of the boots

getItems

public org.bukkit.inventory.ItemStack[] getItems()