From 0a6bf8a64b4096498da9a4846ec9cc81c7075f4e Mon Sep 17 00:00:00 2001 From: Aikar Date: Sat, 17 Jun 2017 15:04:51 -0400 Subject: [PATCH] Shoulder Entities Release API diff --git a/src/main/java/org/bukkit/entity/HumanEntity.java b/src/main/java/org/bukkit/entity/HumanEntity.java index 6277f3928..5b5fb3034 100644 --- a/src/main/java/org/bukkit/entity/HumanEntity.java +++ b/src/main/java/org/bukkit/entity/HumanEntity.java @@ -324,6 +324,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 + /** * Discover a recipe for this player such that it has not already been * discovered. This method will add the key's associated recipe to the -- 2.25.1