summaryrefslogtreecommitdiff
path: root/src/main/java/gmail/Lance5057/com/moltenQueensGoldFluid.java
blob: dc55f197ed739af0da24fbf5cbc9401fca11aa7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package gmail.Lance5057.com;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import java.util.Locale;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.util.IIcon;
import net.minecraftforge.fluids.BlockFluidClassic;
import net.minecraftforge.fluids.Fluid;

public class moltenQueensGoldFluid
  extends BlockFluidClassic
{
  private IIcon stillIcon;
  private IIcon flowingIcon;
  private String stillIconTexture = "molten_QueensGold";
  private String flowIconTexture = "molten_QueensGold_flow";
  
  public moltenQueensGoldFluid(Fluid fluid)
  {
    super(fluid, Material.lava);
    setLightLevel(100.0F);
    setHardness(1.0F);
    setBlockName("MoltenQueensGold");
    
    this.stillIconTexture = ("tinkersdefense:" + stillIconTexture);
    this.flowIconTexture = ("tinkersdefense:" + flowIconTexture);
  }
  
  @SideOnly(Side.CLIENT)
  public void func_149651_a(IIconRegister icon)
  {
    this.stillIcon = icon.registerIcon(this.stillIconTexture);
    this.flowingIcon = icon.registerIcon(this.flowIconTexture);
    
    getFluid().setIcons(this.stillIcon, this.flowingIcon);
  }
  
  public IIcon getStillIcon()
  {
    return this.stillIcon;
  }
  
  public IIcon getFlowingIcon()
  {
    return this.flowingIcon;
  }
  
  @SideOnly(Side.CLIENT)
  public IIcon func_149691_a(int side, int meta)
  {
    if (side <= 1) {
      return this.stillIcon;
    }
    return this.flowingIcon;
  }
}