#1038: 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. * 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 * @param inventory The view to open
*/ */