OSDN Git Service

(・∀・)
[chemicraft/chemicraft.git] / common / pcc / chemicraft / core / block / BlockChemicalCombinationTable.java
index 1d19a10..8e1b0e2 100644 (file)
@@ -2,17 +2,22 @@ package pcc.chemicraft.core.block;
 
 import net.minecraft.block.BlockContainer;
 import net.minecraft.block.material.Material;
+import net.minecraft.client.renderer.texture.IconRegister;
 import net.minecraft.entity.player.EntityPlayer;
 import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.Icon;
 import net.minecraft.world.World;
-import pcc.chemicraft.ChemiCraft;
 import pcc.chemicraft.core.ChemiCraftCore;
 import pcc.chemicraft.core.tileentity.TileEntityChemicalCombinationTable;
 
 public class BlockChemicalCombinationTable extends BlockContainer {
 
-       public BlockChemicalCombinationTable(int par1, int par2, Material par3Material) {
-               super(par1, par2, par3Material);
+       public Icon topIcon;
+       public Icon bottomIcon;
+       public Icon globalIcon;
+
+       public BlockChemicalCombinationTable(int par1, Material par2Material) {
+               super(par1, par2Material);
                this.setCreativeTab(ChemiCraftCore.creativeTabChemiCraft);
        }
 
@@ -25,8 +30,7 @@ public class BlockChemicalCombinationTable extends BlockContainer {
 
 
        @Override
-       public String getTextureFile() {
-               return ChemiCraft.BLOCK_CHEMICAL_CRAFTING_TABLE_TEXTURE;
+       public void registerIcons(IconRegister par1IconRegister) {
        }
 
 
@@ -49,13 +53,13 @@ public class BlockChemicalCombinationTable extends BlockContainer {
 
 
        @Override
-       public int getBlockTextureFromSide(int par1) {
+       public Icon getBlockTextureFromSideAndMetadata(int par1, int par2) {
                if(par1 == 0){
-                       return 17;
+                       return this.topIcon;
                }else if(par1 == 1){
-                       return this.blockIndexInTexture;
+                       return this.bottomIcon;
                }else{
-                       return 16;
+                       return this.globalIcon;
                }
        }