blob: e549a7fc4e13172473a452bdd9eea59f7c5ca842 (
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
51
52
53
54
|
package net.minecraft.server;
public class Slot {
public final int index; // CraftBukkit: private -> public
public final IInventory inventory; // CraftBukkit: private -> public
public int a;
public int b;
public int c;
public Slot(IInventory iinventory, int i, int j, int k) {
this.inventory = iinventory;
this.index = i;
this.b = j;
this.c = k;
}
public void a(ItemStack itemstack) {
this.b();
}
public boolean isAllowed(ItemStack itemstack) {
return true;
}
public ItemStack getItem() {
return this.inventory.getItem(this.index);
}
public void c(ItemStack itemstack) {
this.inventory.setItem(this.index, itemstack);
this.b();
}
public void b() {
this.inventory.update();
}
public int c() {
return this.inventory.getMaxStackSize();
}
public ItemStack a(int i) {
return this.inventory.a(this.index, i);
}
public boolean a(IInventory iinventory, int i) {
return iinventory == this.inventory && i == this.index;
}
public boolean d() {
return false;
}
}
|