Item#canEntityPickup

This commit is contained in:
BillyGalbreath 2017-05-05 03:57:08 -05:00
parent 0c37d20354
commit 9dc1cc8212

View File

@ -89,4 +89,20 @@ public interface Item extends Entity {
*/
@Nullable
public UUID getThrower();
// Paper start
/**
* Gets if non-player entities can pick this Item up
*
* @return True if non-player entities can pickup
*/
public boolean canMobPickup();
/**
* Sets if non-player entities can pick this Item up
*
* @param canMobPickup True to allow non-player entity pickup
*/
public void setCanMobPickup(boolean canMobPickup);
// Paper end
}