mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
Add playPickupItemAnimation to LivingEntity
This commit is contained in:
parent
0ef48f1dd1
commit
a7e8ccc630
1 changed files with 7 additions and 0 deletions
|
@ -1009,4 +1009,11 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Paper end - entity jump API
|
// Paper end - entity jump API
|
||||||
|
|
||||||
|
// Paper start - pickup animation API
|
||||||
|
@Override
|
||||||
|
public void playPickupItemAnimation(final org.bukkit.entity.Item item, final int quantity) {
|
||||||
|
this.getHandle().take(((CraftItem) item).getHandle(), quantity);
|
||||||
|
}
|
||||||
|
// Paper end - pickup animation API
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue