mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 19:59:55 +00:00
start of the 1.7 update commits
This commit is contained in:
1 parent
6f8ca82d98
commit
1bd860c52f
118 files changed
+403
-1837
No files matched your search
@@ -1,8 +1,8 @@
|
||||
package tconstruct.blocks;
|
||||
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.renderer.texture.IconRegister;
|
||||
import net.minecraft.util.Icon;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraftforge.fluids.BlockFluidClassic;
|
||||
import net.minecraftforge.fluids.Fluid;
|
||||
import tconstruct.library.TConstructRegistry;
|
||||
@@ -11,14 +11,15 @@ public class TConstructFluid extends BlockFluidClassic
|
||||
{
|
||||
String texture;
|
||||
boolean alpha;
|
||||
public Icon stillIcon;
|
||||
public Icon flowIcon;
|
||||
public IIcon stillIcon;
|
||||
public IIcon flowIcon;
|
||||
|
||||
public TConstructFluid(int id, Fluid fluid, Material material, String texture)
|
||||
{
|
||||
super(id, fluid, material);
|
||||
this.texture = texture;
|
||||
this.setCreativeTab(TConstructRegistry.blockTab);
|
||||
//TODO setCreativeTab()
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
}
|
||||
|
||||
public TConstructFluid(int id, Fluid fluid, Material material, String texture, boolean alpha)
|
||||
@@ -32,16 +33,17 @@ public class TConstructFluid extends BlockFluidClassic
|
||||
{
|
||||
return alpha ? 1 : 0;
|
||||
}
|
||||
|
||||
//TODO registerIcons
|
||||
@Override
|
||||
public void registerIcons (IconRegister iconRegister)
|
||||
public void func_149651_a (IIconRegister iconRegister)
|
||||
{
|
||||
stillIcon = iconRegister.registerIcon("tinker:" + texture);
|
||||
flowIcon = iconRegister.registerIcon("tinker:" + texture + "_flow");
|
||||
}
|
||||
|
||||
//TODO getIcon()
|
||||
@Override
|
||||
public Icon getIcon (int side, int meta)
|
||||
public IIcon func_149691_a (int side, int meta)
|
||||
{
|
||||
if (side == 0 || side == 1)
|
||||
return stillIcon;
|
||||
|
||||
Reference in new issue
Block a user