mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-26 14:30:17 +01:00
[ci skip] Fix Inventory#addItem javadoc mismatch with behaviour (#11782)
This commit is contained in:
parent
63c94c90d9
commit
62d4130bba
1 changed files with 6 additions and 6 deletions
|
@ -85,12 +85,12 @@ public interface Inventory extends Iterable<ItemStack> {
|
||||||
* index of the varargs parameter. If all items are stored, it will return
|
* index of the varargs parameter. If all items are stored, it will return
|
||||||
* an empty HashMap.
|
* an empty HashMap.
|
||||||
* <p>
|
* <p>
|
||||||
* If you pass in ItemStacks which exceed the maximum stack size for the
|
* Items resulted from this method will not exceed the minimum
|
||||||
* Material, first they will be added to partial stacks where
|
* of {@link ItemStack#getMaxStackSize()} and {@link #getMaxStackSize()}.
|
||||||
* Material.getMaxStackSize() is not exceeded, up to
|
* <p>
|
||||||
* Material.getMaxStackSize(). When there are no partial stacks left
|
* First, this method will try to fill all the partial stacks in the inventory.
|
||||||
* stacks will be split on Inventory.getMaxStackSize() allowing you to
|
* Then it will try to fill empty slots, over-stacked items being able to
|
||||||
* exceed the maximum stack size for that material.
|
* fill several empty slots. The rest are placed in the returned map.
|
||||||
* <p>
|
* <p>
|
||||||
* It is known that in some implementations this method will also set
|
* It is known that in some implementations this method will also set
|
||||||
* the inputted argument amount to the number of that item not placed in
|
* the inputted argument amount to the number of that item not placed in
|
||||||
|
|
Loading…
Reference in a new issue