mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 10:17:38 +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
51074e000d
commit
1a5043d05d
@ -22,6 +22,10 @@ public class CraftChest extends CraftBlockState implements Chest {
|
||||
chest = (TileEntityChest) world.getTileEntityAt(getX(), getY(), getZ());
|
||||
}
|
||||
|
||||
public Inventory getBlockInventory() {
|
||||
return new CraftInventory(chest);
|
||||
}
|
||||
|
||||
public Inventory getInventory() {
|
||||
int x = getX();
|
||||
int y = getY();
|
||||
|
Loading…
Reference in New Issue
Block a user