mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-09-18 21:45:12 +00:00
Add getLocation() to Inventory.
This commit is contained in:
parent
7898a2a2d2
commit
33fbc3d862
1 changed files with 9 additions and 0 deletions
|
@ -4,6 +4,7 @@ import java.util.HashMap;
|
|||
import java.util.List;
|
||||
import java.util.ListIterator;
|
||||
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.entity.HumanEntity;
|
||||
import org.bukkit.event.inventory.InventoryType;
|
||||
|
@ -378,4 +379,12 @@ public interface Inventory extends Iterable<ItemStack> {
|
|||
* @return An iterator.
|
||||
*/
|
||||
public ListIterator<ItemStack> iterator(int index);
|
||||
|
||||
/**
|
||||
* Get the location of the block or entity which corresponds to this inventory. May return null if this container
|
||||
* was custom created or is a virtual / subcontainer.
|
||||
*
|
||||
* @return location or null if not applicable.
|
||||
*/
|
||||
public Location getLocation();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue