1package com.runehive.game.world.items;
3import com.runehive.game.world.items.containers.pricechecker.PriceType;
5import java.util.Comparator;
17 double firstValue = 0;
18 double secondValue = 0;
20 if (first ==
null && second ==
null) {
45 firstValue = first.
getId();
46 secondValue = second.
getId();
66 return Integer.signum((
int) (secondValue - firstValue));
The container class that represents an item that can be interacted with.
final int getId()
Gets the identification of this item.
final int getAmount()
Gets the quantity of this item.
int getValue(PriceType type)
Gets the value for this item.
int compare(Item first, Item second)
HIGH_ALCH_VALUE
The high alchemy price type.
VALUE
The value price type.