mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 19:34:09 +01:00
SPIGOT-4634: Make Inventory iteration behaviour explicit
By: md_5 <git@md-5.net>
This commit is contained in:
parent
3ce97266e5
commit
4607199e45
1 changed files with 10 additions and 0 deletions
|
@ -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> {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue