2011-01-09 18:27:46 +01:00
|
|
|
package net.minecraft.server;
|
|
|
|
|
|
|
|
public class Slot {
|
|
|
|
|
|
|
|
public final int a; // CraftBukkit: private -> public
|
|
|
|
public final IInventory b; // CraftBukkit: private -> public
|
|
|
|
public int c;
|
|
|
|
public int d;
|
|
|
|
public int e;
|
2011-01-11 09:25:13 +01:00
|
|
|
|
2011-01-09 18:27:46 +01:00
|
|
|
public Slot(IInventory iinventory, int i, int j, int k) {
|
|
|
|
b = iinventory;
|
|
|
|
a = i;
|
|
|
|
d = j;
|
|
|
|
e = k;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void b() {
|
|
|
|
d();
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean a(ItemStack itemstack) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ItemStack c() {
|
|
|
|
return b.a(a);
|
|
|
|
}
|
|
|
|
|
|
|
|
public void b(ItemStack itemstack) {
|
|
|
|
b.a(a, itemstack);
|
|
|
|
d();
|
|
|
|
}
|
|
|
|
|
|
|
|
public void d() {
|
|
|
|
b.d();
|
|
|
|
}
|
|
|
|
|
|
|
|
public int a() {
|
|
|
|
return b.c();
|
|
|
|
}
|
|
|
|
|
|
|
|
public ItemStack a(int i) {
|
2011-01-14 14:31:10 +01:00
|
|
|
return b.b(a, i);
|
2011-01-09 18:27:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public boolean a(IInventory iinventory, int i) {
|
|
|
|
return iinventory == b && i == a;
|
|
|
|
}
|
|
|
|
}
|