13
0
geforkt von Mirrors/Paper

[Bleeding] Add Chest.getBlockInventory() for convenience; this always returns a single chest inventory. Addresses BUKKIT-1247

Dieser Commit ist enthalten in:
Celtic Minstrel 2012-03-19 15:01:53 -04:00 committet von EvilSeph
Ursprung cd9779196b
Commit 4bcbe2d235

Datei anzeigen

@ -22,6 +22,10 @@ public class CraftChest extends CraftBlockState implements Chest {
chest = (TileEntityChest) world.getTileEntityAt(getX(), getY(), getZ()); chest = (TileEntityChest) world.getTileEntityAt(getX(), getY(), getZ());
} }
public Inventory getBlockInventory() {
return new CraftInventory(chest);
}
public Inventory getInventory() { public Inventory getInventory() {
int x = getX(); int x = getX();
int y = getY(); int y = getY();