2011-01-29 22:50:29 +01:00
|
|
|
package net.minecraft.server;
|
|
|
|
|
|
|
|
public class InventoryCraftResult implements IInventory {
|
|
|
|
|
|
|
|
private ItemStack[] a = new ItemStack[1];
|
|
|
|
|
|
|
|
// CraftBukkit start
|
|
|
|
public ItemStack[] getContents() {
|
|
|
|
return a;
|
|
|
|
}
|
|
|
|
// CraftBukkit end
|
|
|
|
|
|
|
|
public InventoryCraftResult() {}
|
|
|
|
|
2011-03-31 22:40:00 +02:00
|
|
|
public int q_() {
|
2011-02-23 03:37:56 +01:00
|
|
|
return 1;
|
2011-01-29 22:50:29 +01:00
|
|
|
}
|
|
|
|
|
2011-02-23 03:37:56 +01:00
|
|
|
public ItemStack c_(int i) {
|
2011-01-29 22:50:29 +01:00
|
|
|
return this.a[i];
|
|
|
|
}
|
|
|
|
|
2011-02-23 03:37:56 +01:00
|
|
|
public String c() {
|
2011-01-29 22:50:29 +01:00
|
|
|
return "Result";
|
|
|
|
}
|
|
|
|
|
2011-02-23 03:37:56 +01:00
|
|
|
public ItemStack a(int i, int j) {
|
2011-01-29 22:50:29 +01:00
|
|
|
if (this.a[i] != null) {
|
|
|
|
ItemStack itemstack = this.a[i];
|
|
|
|
|
|
|
|
this.a[i] = null;
|
|
|
|
return itemstack;
|
|
|
|
} else {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public void a(int i, ItemStack itemstack) {
|
|
|
|
this.a[i] = itemstack;
|
|
|
|
}
|
|
|
|
|
2011-03-31 22:40:00 +02:00
|
|
|
public int r_() {
|
2011-01-29 22:50:29 +01:00
|
|
|
return 64;
|
|
|
|
}
|
|
|
|
|
2011-03-31 22:40:00 +02:00
|
|
|
public void i() {}
|
2011-01-29 22:50:29 +01:00
|
|
|
|
|
|
|
public boolean a_(EntityHuman entityhuman) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|