13
0
geforkt von Mirrors/Paper

#539: HumanEntity - add a method to make the entity drop the item they're holding

By: Shane Bee <shanebolenback@me.com>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2020-08-16 09:32:49 +10:00
Ursprung 8f6edc374c
Commit 6a0096dd86

Datei anzeigen

@ -441,4 +441,15 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, InventoryHolder
*/
@Deprecated
public void setShoulderEntityRight(@Nullable Entity entity);
/**
* Make the entity drop the item in their hand.
* <br>
* This will force the entity to drop the item they are holding with
* an option to drop the entire {@link ItemStack} or just 1 of the items.
*
* @param dropAll True to drop entire stack, false to drop 1 of the stack
* @return True if item was dropped successfully
*/
public boolean dropItem(boolean dropAll);
}