PaperMC/src/main/java/net/minecraft/server/InventoryCraftResult.java

54 lines
973 B
Java
Raw Normal View History

package net.minecraft.server;
public class InventoryCraftResult implements IInventory {
private ItemStack a[];
// CraftBukkit start
public ItemStack[] getContents() {
return a;
}
// CraftBukkit end
public InventoryCraftResult() {
a = new ItemStack[1];
}
2011-01-14 14:31:10 +01:00
public int h_() {
return 1;
}
public ItemStack a(int i) {
return a[i];
}
public String b() {
return "Result";
}
2011-01-14 14:31:10 +01:00
public ItemStack b(int i, int j) {
if (a[i] != null) {
ItemStack itemstack = a[i];
a[i] = null;
return itemstack;
} else {
return null;
}
}
public void a(int i, ItemStack itemstack) {
a[i] = itemstack;
}
public int c() {
return 64;
}
public void d() {}
public boolean a_(EntityPlayer entityplayer) {
return true;
}
}