blob: 1708ec028ce968c0b20dddd9e49f96a48dcbac30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
package net.minecraft.server;
public class Slot {
public final int d; // CraftBukkit: private -> public
public final IInventory e; // CraftBukkit: private -> public
public int a;
public int b;
public int c;
public Slot(IInventory iinventory, int i, int j, int k) {
this.e = iinventory;
this.d = i;
this.b = j;
this.c = k;
}
public void a() {
this.c();
}
public boolean a(ItemStack itemstack) {
return true;
}
public ItemStack b() {
return this.e.c_(this.d);
}
public void b(ItemStack itemstack) {
this.e.a(this.d, itemstack);
this.c();
}
public void c() {
this.e.h();
}
public int d() {
return this.e.n_();
}
public ItemStack a(int i) {
return this.e.a(this.d, i);
}
public boolean a(IInventory iinventory, int i) {
return iinventory == this.e && i == this.d;
}
}
|