mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 11:27:35 +01:00
Item#canEntityPickup
This commit is contained in:
parent
0c37d20354
commit
9dc1cc8212
@ -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…
Reference in New Issue
Block a user