mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-16 04:33:56 -07:00
SPIGOT-4634: Make Inventory iteration behaviour explicit
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -12,6 +12,16 @@ import org.bukkit.event.inventory.InventoryType;
|
|||||||
/**
|
/**
|
||||||
* Interface to the various inventories. Behavior relating to {@link
|
* Interface to the various inventories. Behavior relating to {@link
|
||||||
* Material#AIR} is unspecified.
|
* Material#AIR} is unspecified.
|
||||||
|
*
|
||||||
|
* <br>
|
||||||
|
* <b>Note that whilst {@link #iterator()} deals with the entire inventory, add
|
||||||
|
* / contains / remove methods deal only with the storage contents.</b>
|
||||||
|
* <br>
|
||||||
|
* <b>Consider using {@link #getContents()} and {@link #getStorageContents()} for
|
||||||
|
* specific iteration.</b>
|
||||||
|
*
|
||||||
|
* @see #getContents()
|
||||||
|
* @see #getStorageContents()
|
||||||
*/
|
*/
|
||||||
public interface Inventory extends Iterable<ItemStack> {
|
public interface Inventory extends Iterable<ItemStack> {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user