Add EntityEquipment API. Adds BUKKIT-3103

By: feildmaster <admin@feildmaster.com>
This commit is contained in:
Bukkit/Spigot
2012-12-09 00:52:20 -06:00
parent 9e827c037c
commit e5f57b28c9
2 changed files with 231 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ import java.util.List;
import org.bukkit.Location;
import org.bukkit.block.Block;
import org.bukkit.inventory.EntityEquipment;
import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType;
@@ -293,4 +294,25 @@ public interface LivingEntity extends Entity {
* @param remove The remove status
*/
public void setRemoveWhenFarAway(boolean remove);
/**
* Gets the inventory with the equipment worn by this entity.
*
* @return the entities inventory.
*/
public EntityEquipment getEquipment();
/**
* Sets whether or not the entity can pick up items
*
* @param pickup Whether or not the entity can pick up items
*/
public void setCanPickupItems(boolean pickup);
/**
* Gets if the entity can pick up items
*
* @return whether or not the entity can pick up items
*/
public boolean getCanPickupItems();
}