public static ItemState GetItemState(short type) { if(type == 0)return default(ItemState); if(ItemStates == null) { LoadItemStates(); } return ItemStates[type-1]; }