2011-01-14 20:44:11 +01:00
|
|
|
package net.minecraft.server;
|
|
|
|
|
|
|
|
public class Slot {
|
|
|
|
|
2011-02-23 03:37:56 +01:00
|
|
|
public final int d; // CraftBukkit: private -> public
|
|
|
|
public final IInventory e; // CraftBukkit: private -> public
|
|
|
|
public int a;
|
|
|
|
public int b;
|
2011-01-14 20:44:11 +01:00
|
|
|
public int c;
|
|
|
|
|
|
|
|
public Slot(IInventory iinventory, int i, int j, int k) {
|
2011-02-23 03:37:56 +01:00
|
|
|
this.e = iinventory;
|
|
|
|
this.d = i;
|
|
|
|
this.b = j;
|
|
|
|
this.c = k;
|
2011-01-14 20:44:11 +01:00
|
|
|
}
|
|
|
|
|
2011-03-31 22:40:00 +02:00
|
|
|
public void a(ItemStack itemstack) {
|
|
|
|
this.b();
|
2011-01-14 20:44:11 +01:00
|
|
|
}
|
|
|
|
|
2011-03-31 22:40:00 +02:00
|
|
|
public boolean b(ItemStack itemstack) {
|
2011-01-14 20:44:11 +01:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2011-03-31 22:40:00 +02:00
|
|
|
public ItemStack a() {
|
2011-02-23 03:37:56 +01:00
|
|
|
return this.e.c_(this.d);
|
2011-01-14 20:44:11 +01:00
|
|
|
}
|
|
|
|
|
2011-03-31 22:40:00 +02:00
|
|
|
public void c(ItemStack itemstack) {
|
2011-02-23 03:37:56 +01:00
|
|
|
this.e.a(this.d, itemstack);
|
2011-03-31 22:40:00 +02:00
|
|
|
this.b();
|
2011-01-14 20:44:11 +01:00
|
|
|
}
|
|
|
|
|
2011-03-31 22:40:00 +02:00
|
|
|
public void b() {
|
|
|
|
this.e.i();
|
2011-01-14 20:44:11 +01:00
|
|
|
}
|
|
|
|
|
2011-03-31 22:40:00 +02:00
|
|
|
public int c() {
|
|
|
|
return this.e.r_();
|
2011-01-14 20:44:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public ItemStack a(int i) {
|
2011-02-23 03:37:56 +01:00
|
|
|
return this.e.a(this.d, i);
|
2011-01-14 20:44:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public boolean a(IInventory iinventory, int i) {
|
2011-02-23 03:37:56 +01:00
|
|
|
return iinventory == this.e && i == this.d;
|
2011-01-14 20:44:11 +01:00
|
|
|
}
|
2011-03-31 22:40:00 +02:00
|
|
|
|
|
|
|
public boolean d() {
|
|
|
|
return false;
|
|
|
|
}
|
2011-01-14 20:44:11 +01:00
|
|
|
}
|