mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-02 11:22:01 +01:00
#539: HumanEntity - add a method to make the entity drop the item they're holding
By: Shane Bee <shanebolenback@me.com>
This commit is contained in:
parent
8f6edc374c
commit
6a0096dd86
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user