Commits

Miles Holder authored and md_5 committed 8bf19163e5e
#1038: Clarify HumanEntity#openInventory(InventoryView) JavaDoc
No tags

src/main/java/org/bukkit/entity/HumanEntity.java

Modified
129 129 * @param force If false, and there is no enchanting table at the
130 130 * location, no inventory will be opened and null will be returned.
131 131 * @return The newly opened inventory view, or null if it could not be
132 132 * opened.
133 133 */
134 134 @Nullable
135 135 public InventoryView openEnchanting(@Nullable Location location, boolean force);
136 136
137 137 /**
138 138 * Opens an inventory window to the specified inventory view.
139 + * <p>
140 + * The player associated with the InventoryView must be the same as this
141 + * instance of HumanEntity.
142 + * <p>
143 + * The player of the InventoryView can be checked using
144 + * {@link InventoryView#getPlayer()}.
139 145 *
140 146 * @param inventory The view to open
141 147 */
142 148 public void openInventory(@NotNull InventoryView inventory);
143 149
144 150 /**
145 151 * Starts a trade between the player and the villager.
146 152 *
147 153 * Note that only one player may trade with a villager at once. You must use
148 154 * the force parameter for this.

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut