Exemple #1
0
 @Override
 public void initCustomRarityTypes() {
   EnumHelperClient.addRarity(NORMAL, COLOR_NORMAL, DISPLAY_NAME_NORMAL);
   EnumHelperClient.addRarity(UNCOMMON, COLOR_UNCOMMON, DISPLAY_NAME_UNCOMMON);
   EnumHelperClient.addRarity(RARE, COLOR_RARE, DISPLAY_NAME_RARE);
   EnumHelperClient.addRarity(EPIC, COLOR_EPIC, DISPLAY_NAME_EPIC);
   EnumHelperClient.addRarity(LEGENDARY, COLOR_LEGENDARY, DISPLAY_NAME_LEGENDARY);
 }
 @Override
 public void initClient() {
   EnumHelperClient.addRarity(
       CustomRarity.FIRE, CustomRarity.COLOR_FIRE, CustomRarity.DISPLAY_NAME_FIRE);
   EnumHelperClient.addRarity(
       CustomRarity.ICE, CustomRarity.COLOR_ICE, CustomRarity.DISPLAY_NAME_ICE);
   EnumHelperClient.addRarity(
       CustomRarity.BIO, CustomRarity.COLOR_BIO, CustomRarity.DISPLAY_NAME_BIO);
   EnumHelperClient.addRarity(
       CustomRarity.TELEPORT, CustomRarity.COLOR_TELEPORT, CustomRarity.DISPLAY_NAME_TELEPORT);
   EnumHelperClient.addRarity(
       CustomRarity.MINING, CustomRarity.COLOR_MINING, CustomRarity.DISPLAY_NAME_MINING);
   EnumHelperClient.addRarity(
       CustomRarity.AIR, CustomRarity.COLOR_AIR, CustomRarity.DISPLAY_NAME_AIR);
   EnumHelperClient.addRarity(
       CustomRarity.TIME, CustomRarity.COLOR_TIME, CustomRarity.DISPLAY_NAME_TIME);
 }
 public RegistrySword() {
   MinecraftForgeClient.preloadTexture("/okushama/humansplus/swords.png");
   legendary = EnumHelperClient.addRarity("legendary", 5, "Legendary");
   // Sword Registration!
   add(846, "Hidden Blade", material[COMMON]);
   add(847, "Journeyman's Blade", material[COMMON]);
   add(848, "Ornate Blade", material[ANCIENT]);
   add(849, "Broken Blade", material[COMMON]);
   add(850, "Katana", material[COMMON]);
   add(851, "Devouros", material[ANCIENT]);
   add(852, "Gladios", material[ANCIENT]);
   add(853, "Lich Bane", material[ANCIENT]);
   add(854, "Bastard Sword", material[COMMON]);
   add(855, "Malaikah", material[ANCIENT]);
   add(856, "Aquatos", material[LEGENDARY]);
   add(857, "Infernos", material[LEGENDARY]);
   add(858, "Epachos", material[LEGENDARY]);
   add(859, "Solanis", material[LEGENDARY]);
   add(860, "Lunos", material[LEGENDARY]);
   add(861, "Mortis", material[LEGENDARY]);
 }