Example #1
0
 /**
  * @param Item $item
  * @return int
  */
 public static function getCreativeItemIndex(Item $item)
 {
     foreach (Item::$creative as $i => $d) {
         if ($item->equals($d, !$item->isTool())) {
             return $i;
         }
     }
     return -1;
 }