Shoulder Entities Release API

This commit is contained in:
Aikar 2017-06-17 15:04:51 -04:00
parent f5829fec2e
commit 705daba3f5

View file

@ -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.
*