Item#canEntityPickup
This commit is contained in:
@@ -89,4 +89,20 @@ public interface Item extends Entity {
|
|||||||
*/
|
*/
|
||||||
@Nullable
|
@Nullable
|
||||||
public UUID getThrower();
|
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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user