コード例 #1
0
 @Override
 public IIcon getIcon(int i, int j) {
   if (j == LIMESTONE) {
     return TextureLibrary.getBlockTexture("zenith/limestone");
   }
   if (j == LIMESTONE_BRICK) {
     return TextureLibrary.getBlockTexture("zenith/limestoneBrick");
   }
   if (j == LIMESTONE_BRICK_IVIED) {
     return TextureLibrary.getBlockTexture("zenith/limestoneBrickIvy");
   }
   if (j == LIMESTONE_BRICK_CRACKED) {
     return TextureLibrary.getBlockTexture("zenith/limestoneBrickCracked");
   }
   if (j == LIMESTONE_CHISELED) {
     return TextureLibrary.getBlockTexture("zenith/limestoneChiseled");
   }
   if (j == MARBLE) {
     return TextureLibrary.getBlockTexture("zenith/marble");
   }
   if (j == MARBLE_BRICK) {
     return TextureLibrary.getBlockTexture("zenith/marbleBrick");
   }
   if (j == MARBLE_BRICK_IVIED) {
     return TextureLibrary.getBlockTexture("zenith/marbleBrickIvy");
   }
   if (j == MARBLE_BRICK_CRACKED) {
     return TextureLibrary.getBlockTexture("zenith/marbleBrickCracked");
   }
   if (j == MARBLE_CHISELED) {
     return TextureLibrary.getBlockTexture("zenith/marbleChiseled");
   }
   return null;
 }
コード例 #2
0
 @Override
 public void registerBlockIcons(IIconRegister iconregister) {
   blockIcon = TextureLibrary.getBlockTexture("zenith/flower5");
 }