OSDN Git Service

あーうあーう
[chemicraft/chemicraft.git] / common / chemicraft / util / ComparaterItemStackID.java
1 package chemicraft.util;
2
3 import java.util.Comparator;
4
5 import net.minecraft.src.ItemStack;
6
7
8 public class ComparaterItemStackID implements Comparator {
9
10         @Override
11         public int compare(Object o1, Object o2) {
12                 ItemStack i1 = (ItemStack) o1;
13                 ItemStack i2 = (ItemStack) o2;
14                 return i1.itemID > i2.itemID ? 1 : -1;
15         }
16
17 }