Exemplo n.º 1
0
 /**
  * Returns one of IronChestplate sub-type based on sub-id.
  *
  * @param id sub-type id
  * @return sub-type of IronChestplate.
  */
 public static IronChestplateMat getByID(final int id) {
   IronChestplateMat mat = byID.get((short) id);
   if (mat == null) {
     mat = new IronChestplateMat(id);
     if ((id > 0) && (id < IRON_CHESTPLATE.getBaseDurability())) {
       IronChestplateMat.register(mat);
     }
   }
   return mat;
 }
Exemplo n.º 2
0
 static {
   IronChestplateMat.register(IRON_CHESTPLATE);
 }