/** * 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; }
static { IronChestplateMat.register(IRON_CHESTPLATE); }