Add support method for Bukkit
This commit is contained in:
parent
44387c0324
commit
ac32f200fe
|
@ -25,6 +25,11 @@ public class TileEntityIronChest extends TileEntity implements IInventory {
|
||||||
this.type=type;
|
this.type=type;
|
||||||
this.chestContents=new ItemStack[getSizeInventory()];
|
this.chestContents=new ItemStack[getSizeInventory()];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ItemStack[] getContents() {
|
||||||
|
return chestContents;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getSizeInventory() {
|
public int getSizeInventory() {
|
||||||
return type.size;
|
return type.size;
|
||||||
|
|
Loading…
Reference in New Issue