コード例 #1
0
 @Override
 @SideOnly(Side.CLIENT)
 public void registerIcons(IconRegister registry) {
   for (int index = 0; index < BoatType.values().length; index++) {
     IconRegistry.setIcon(
         BoatType.values()[index].unloc + "Chest",
         registry.registerIcon("oceania:" + BoatType.values()[index].unloc + "Chest"));
   }
 }
コード例 #2
0
 @Override
 @SideOnly(Side.CLIENT)
 public Icon getIconFromDamage(int meta) {
   return IconRegistry.getIcon(BoatType.values()[meta].unloc + "Chest");
 }