|
|
@ -24,7 +24,7 @@ import java.util.HashMap; |
|
|
|
import java.util.HashSet; |
|
|
|
import java.util.HashSet; |
|
|
|
import java.util.concurrent.ConcurrentHashMap; |
|
|
|
import java.util.concurrent.ConcurrentHashMap; |
|
|
|
|
|
|
|
|
|
|
|
public class ItemBase { |
|
|
|
public class ItemBase{ |
|
|
|
|
|
|
|
|
|
|
|
public static final byte GOLD_BASE_TYPE = 4; |
|
|
|
public static final byte GOLD_BASE_TYPE = 4; |
|
|
|
public static ItemBase GOLD_ITEM_BASE = null; |
|
|
|
public static ItemBase GOLD_ITEM_BASE = null; |
|
|
@ -36,8 +36,8 @@ public class ItemBase { |
|
|
|
private static HashMap<Integer, Integer> itemHashIDMap = new HashMap<>(); |
|
|
|
private static HashMap<Integer, Integer> itemHashIDMap = new HashMap<>(); |
|
|
|
private static HashMap<String, Integer> _IDsByNames = new HashMap<>(); |
|
|
|
private static HashMap<String, Integer> _IDsByNames = new HashMap<>(); |
|
|
|
private static ArrayList<ItemBase> _resourceList = new ArrayList<>(); |
|
|
|
private static ArrayList<ItemBase> _resourceList = new ArrayList<>(); |
|
|
|
private final int uuid; |
|
|
|
private int uuid; |
|
|
|
private final String name; |
|
|
|
private String name; |
|
|
|
private float durability; |
|
|
|
private float durability; |
|
|
|
private int value; |
|
|
|
private int value; |
|
|
|
private short weight; |
|
|
|
private short weight; |
|
|
@ -723,7 +723,12 @@ public class ItemBase { |
|
|
|
public final int getUUID() { |
|
|
|
public final int getUUID() { |
|
|
|
return uuid; |
|
|
|
return uuid; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public void setUUID(int id) { |
|
|
|
|
|
|
|
this.uuid = id; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public void setName(String name) { |
|
|
|
|
|
|
|
this.name = name; |
|
|
|
|
|
|
|
} |
|
|
|
public boolean isRing() { |
|
|
|
public boolean isRing() { |
|
|
|
return ((this.equipFlag & (64 | 128 | 192)) != 0); |
|
|
|
return ((this.equipFlag & (64 | 128 | 192)) != 0); |
|
|
|
} |
|
|
|
} |
|
|
|