Item#canEntityPickup
This commit is contained in:
@@ -63,6 +63,18 @@ public class CraftItem extends CraftEntity implements Item {
|
||||
}
|
||||
}
|
||||
|
||||
// Paper start
|
||||
@Override
|
||||
public boolean canMobPickup() {
|
||||
return this.getHandle().canMobPickup;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCanMobPickup(boolean canMobPickup) {
|
||||
this.getHandle().canMobPickup = canMobPickup;
|
||||
}
|
||||
// Paper end
|
||||
|
||||
@Override
|
||||
public void setOwner(UUID uuid) {
|
||||
this.getHandle().setTarget(uuid);
|
||||
|
||||
Reference in New Issue
Block a user