mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-31 03:50:36 +01:00
Item#canEntityPickup
This commit is contained in:
parent
0c37d20354
commit
9dc1cc8212
1 changed files with 16 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue