blob: 010ce73262f694ee83ee8841fc06350e219f4307 (
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
|
package tectech.util;
import net.minecraft.item.ItemStack;
public class ItemStackLong {
public final ItemStack itemStack;
public long stackSize;
public ItemStackLong(ItemStack itemStack, long stackSize) {
this.itemStack = itemStack;
this.stackSize = stackSize;
}
// Copy constructor.
public ItemStackLong(ItemStackLong itemStackLong) {
this.itemStack = itemStackLong.itemStack;
this.stackSize = itemStackLong.stackSize;
}
public long getStackSize() {
return stackSize;
}
public long compareTo(ItemStackLong itemStackLong) {
return (stackSize - itemStackLong.stackSize);
}
}
|