1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-03-26 00:27:08 +01:00

: Clarify HumanEntity#openInventory(InventoryView) JavaDoc

By: Miles Holder <mwholder2005@gmail.com>
This commit is contained in:
Bukkit/Spigot 2024-06-22 18:48:49 +10:00
parent 125fef9ab7
commit 68d6fa6800

View file

@ -136,6 +136,12 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, InventoryHolder
/**
* Opens an inventory window to the specified inventory view.
* <p>
* The player associated with the InventoryView must be the same as this
* instance of HumanEntity.
* <p>
* The player of the InventoryView can be checked using
* {@link InventoryView#getPlayer()}.
*
* @param inventory The view to open
*/