EntityEquipment

public interface EntityEquipment

An interface to getClassById creatures inventory

Functions

Link copied to clipboard
public abstract void clear()
Clears the entity of all armor and held items
Link copied to clipboard
public abstract Array<ItemStack> getArmorContents()
Gets getClassById copy of all worn armor
Link copied to clipboard
public abstract ItemStack getBoots()
Gets getClassById copy of the boots currently being worn by the entity
Link copied to clipboard
public abstract float getBootsDropChance()
Gets the chance of the boots being dropped upon this creature's death.
Link copied to clipboard
public abstract ItemStack getChestplate()
Gets getClassById copy of the chest plate currently being worn by the entity
Link copied to clipboard
public abstract float getChestplateDropChance()
Gets the chance of the chest plate being dropped upon this creature's death.
Link copied to clipboard
public abstract ItemStack getHelmet()
Gets getClassById copy of the helmet currently being worn by the entity
Link copied to clipboard
public abstract float getHelmetDropChance()
Gets the chance of the helmet being dropped upon this creature's death.
Link copied to clipboard
public abstract Entity getHolder()
Get the entity this EntityEquipment belongs to
Link copied to clipboard
public abstract ItemStack getItemInHand()
Gets getClassById copy of the item the entity is currently holding
Link copied to clipboard
public abstract float getItemInHandDropChance()
Gets the chance of the currently held item being dropped upon this creature's death.
Link copied to clipboard
public abstract ItemStack getLeggings()
Gets getClassById copy of the leggings currently being worn by the entity
Link copied to clipboard
public abstract float getLeggingsDropChance()
Gets the chance of the leggings being dropped upon this creature's death.
Link copied to clipboard
public abstract void setArmorContents(Array<ItemStack> items)
Sets the entities armor to the provided array of ItemStacks
Link copied to clipboard
public abstract void setBoots(ItemStack boots)
Sets the boots worn by the entity
Link copied to clipboard
public abstract void setBootsDropChance(float chance)
Sets the chance of the boots being dropped upon this creature's death.
Link copied to clipboard
public abstract void setChestplate(ItemStack chestplate)
Sets the chest plate worn by the entity
Link copied to clipboard
public abstract void setChestplateDropChance(float chance)
Sets the chance of the chest plate being dropped upon this creature's death.
Link copied to clipboard
public abstract void setHelmet(ItemStack helmet)
Sets the helmet worn by the entity
Link copied to clipboard
public abstract void setHelmetDropChance(float chance)
Sets the chance of the helmet being dropped upon this creature's death.
Link copied to clipboard
public abstract void setItemInHand(ItemStack stack)
Sets the item the entity is holding
Link copied to clipboard
public abstract void setItemInHandDropChance(float chance)
Sets the chance of the item this creature is currently holding being dropped upon this creature's death.
Link copied to clipboard
public abstract void setLeggings(ItemStack leggings)
Sets the leggings worn by the entity
Link copied to clipboard
public abstract void setLeggingsDropChance(float chance)
Sets the chance of the leggings being dropped upon this creature's death.