mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-07 11:05:13 +01:00
[Bleeding] Add Chest.getBlockInventory() for convenience; this always returns a single chest inventory. Addresses BUKKIT-1247
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
This commit is contained in:
parent
35852775ed
commit
82f7680bd0
1 changed files with 11 additions and 1 deletions
|
@ -1,6 +1,16 @@
|
|||
package org.bukkit.block;
|
||||
|
||||
import org.bukkit.inventory.Inventory;
|
||||
|
||||
/**
|
||||
* Represents a chest.
|
||||
*/
|
||||
public interface Chest extends BlockState, ContainerBlock {}
|
||||
public interface Chest extends BlockState, ContainerBlock {
|
||||
/**
|
||||
* Returns the chest's inventory. If this is a double chest, it returns just
|
||||
* the portion of the inventory linked to this half of the chest.
|
||||
*
|
||||
* @return The inventory.
|
||||
*/
|
||||
Inventory getBlockInventory();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue