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

52 Zeilen
929 B
Java

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-02-23 03:37:56 +01:00
public int m_() {
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-02-23 03:37:56 +01:00
public int n_() {
2011-01-29 22:50:29 +01:00
return 64;
}
2011-02-23 03:37:56 +01:00
public void h() {}
2011-01-29 22:50:29 +01:00
public boolean a_(EntityHuman entityhuman) {
return true;
}
}