mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
Shoulder Entities Release API
This commit is contained in:
parent
f5829fec2e
commit
705daba3f5
1 changed files with 20 additions and 0 deletions
|
@ -377,6 +377,26 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, InventoryHolder
|
|||
*/
|
||||
public int getExpToLevel();
|
||||
|
||||
// Paper start
|
||||
/**
|
||||
* If there is an Entity on this entities left shoulder, it will be released to the world and returned.
|
||||
* If no Entity is released, null will be returned.
|
||||
*
|
||||
* @return The released entity, or null
|
||||
*/
|
||||
@Nullable
|
||||
public Entity releaseLeftShoulderEntity();
|
||||
|
||||
/**
|
||||
* If there is an Entity on this entities left shoulder, it will be released to the world and returned.
|
||||
* If no Entity is released, null will be returned.
|
||||
*
|
||||
* @return The released entity, or null
|
||||
*/
|
||||
@Nullable
|
||||
public Entity releaseRightShoulderEntity();
|
||||
// Paper end
|
||||
|
||||
/**
|
||||
* Gets the current cooldown for a player's attack.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue