Item#canEntityPickup

This commit is contained in:
BillyGalbreath
2017-05-05 03:57:17 -05:00
parent 918da37691
commit b41abcdb68
3 changed files with 65 additions and 40 deletions

View File

@@ -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);