Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.inventory.EntityEquipment Interface Reference

Public Member Functions

ItemStack getItemInHand ()
 
void setItemInHand (ItemStack stack)
 
ItemStack getHelmet ()
 
void setHelmet (ItemStack helmet)
 
ItemStack getChestplate ()
 
void setChestplate (ItemStack chestplate)
 
ItemStack getLeggings ()
 
void setLeggings (ItemStack leggings)
 
ItemStack getBoots ()
 
void setBoots (ItemStack boots)
 
ItemStack[] getArmorContents ()
 
void setArmorContents (ItemStack[] items)
 
void clear ()
 
float getItemInHandDropChance ()
 
void setItemInHandDropChance (float chance)
 
float getHelmetDropChance ()
 
void setHelmetDropChance (float chance)
 
float getChestplateDropChance ()
 
void setChestplateDropChance (float chance)
 
float getLeggingsDropChance ()
 
void setLeggingsDropChance (float chance)
 
float getBootsDropChance ()
 
void setBootsDropChance (float chance)
 
Entity getHolder ()
 

Detailed Description

An interface to a creatures inventory

Definition at line 8 of file EntityEquipment.java.

Member Function Documentation

void org.bukkit.inventory.EntityEquipment.clear ( )

Clears the entity of all armor and held items

ItemStack [] org.bukkit.inventory.EntityEquipment.getArmorContents ( )

Gets a copy of all worn armor

Returns
The array of worn armor
ItemStack org.bukkit.inventory.EntityEquipment.getBoots ( )

Gets a copy of the boots currently being worn by the entity

Returns
The boots being worn
float org.bukkit.inventory.EntityEquipment.getBootsDropChance ( )

Gets the chance of the boots being dropped upon this creature's death

  • A drop chance of 0F will never drop
  • A drop chance of 1F will always drop
Returns
the chance of the boots being dropped (1 for players)
ItemStack org.bukkit.inventory.EntityEquipment.getChestplate ( )

Gets a copy of the chest plate currently being worn by the entity

Returns
The chest plate being worn
float org.bukkit.inventory.EntityEquipment.getChestplateDropChance ( )

Gets the chance of the chest plate being dropped upon this creature's death

  • A drop chance of 0F will never drop
  • A drop chance of 1F will always drop
Returns
the chance of the chest plate being dropped (1 for players)
ItemStack org.bukkit.inventory.EntityEquipment.getHelmet ( )

Gets a copy of the helmet currently being worn by the entity

Returns
The helmet being worn
float org.bukkit.inventory.EntityEquipment.getHelmetDropChance ( )

Gets the chance of the helmet being dropped upon this creature's death

  • A drop chance of 0F will never drop
  • A drop chance of 1F will always drop
Returns
the chance of the helmet being dropped (1 for players)
Entity org.bukkit.inventory.EntityEquipment.getHolder ( )

Get the entity this EntityEquipment belongs to

Returns
the entity this EntityEquipment belongs to
ItemStack org.bukkit.inventory.EntityEquipment.getItemInHand ( )

Gets a copy of the item the entity is currently holding

Returns
the currently held item
float org.bukkit.inventory.EntityEquipment.getItemInHandDropChance ( )

Gets the chance of the currently held item being dropped upon this creature's death

  • A drop chance of 0F will never drop
  • A drop chance of 1F will always drop
Returns
chance of the currently held item being dropped (1 for players)
ItemStack org.bukkit.inventory.EntityEquipment.getLeggings ( )

Gets a copy of the leggings currently being worn by the entity

Returns
The leggings being worn
float org.bukkit.inventory.EntityEquipment.getLeggingsDropChance ( )

Gets the chance of the leggings being dropped upon this creature's death

  • A drop chance of 0F will never drop
  • A drop chance of 1F will always drop
Returns
the chance of the leggings being dropped (1 for players)
void org.bukkit.inventory.EntityEquipment.setArmorContents ( ItemStack[]  items)

Sets the entities armor to the provided array of ItemStacks

Parameters
itemsThe items to set the armor as
void org.bukkit.inventory.EntityEquipment.setBoots ( ItemStack  boots)

Sets the boots worn by the entity

Parameters
bootsThe boots to put on the entity
void org.bukkit.inventory.EntityEquipment.setBootsDropChance ( float  chance)

Sets the chance of the boots being dropped upon this creature's death

  • A drop chance of 0F will never drop
  • A drop chance of 1F will always drop
Parameters
chanceof the boots being dropped
Exceptions
UnsupportedOperationExceptionwhen called on players
void org.bukkit.inventory.EntityEquipment.setChestplate ( ItemStack  chestplate)

Sets the chest plate worn by the entity

Parameters
chestplateThe chest plate to put on the entity
void org.bukkit.inventory.EntityEquipment.setChestplateDropChance ( float  chance)

Sets the chance of the chest plate being dropped upon this creature's death

  • A drop chance of 0F will never drop
  • A drop chance of 1F will always drop
Parameters
chanceof the chest plate being dropped
Exceptions
UnsupportedOperationExceptionwhen called on players
void org.bukkit.inventory.EntityEquipment.setHelmet ( ItemStack  helmet)

Sets the helmet worn by the entity

Parameters
helmetThe helmet to put on the entity
void org.bukkit.inventory.EntityEquipment.setHelmetDropChance ( float  chance)

Sets the chance of the helmet being dropped upon this creature's death

  • A drop chance of 0F will never drop
  • A drop chance of 1F will always drop
Parameters
chanceof the helmet being dropped
Exceptions
UnsupportedOperationExceptionwhen called on players
void org.bukkit.inventory.EntityEquipment.setItemInHand ( ItemStack  stack)

Sets the item the entity is holding

Parameters
stackThe item to put into the entities hand
void org.bukkit.inventory.EntityEquipment.setItemInHandDropChance ( float  chance)

Sets the chance of the item this creature is currently holding being dropped upon this creature's death

  • A drop chance of 0F will never drop
  • A drop chance of 1F will always drop
Parameters
chancethe chance of the currently held item being dropped
Exceptions
UnsupportedOperationExceptionwhen called on players
void org.bukkit.inventory.EntityEquipment.setLeggings ( ItemStack  leggings)

Sets the leggings worn by the entity

Parameters
leggingsThe leggings to put on the entity
void org.bukkit.inventory.EntityEquipment.setLeggingsDropChance ( float  chance)

Sets the chance of the leggings being dropped upon this creature's death

  • A drop chance of 0F will never drop
  • A drop chance of 1F will always drop
Parameters
chancechance of the leggings being dropped
Exceptions
UnsupportedOperationExceptionwhen called on players

The documentation for this interface was generated from the following file: