2013-10-28 04:20:08 +00:00
|
|
|
package biomesoplenty.fluids;
|
|
|
|
|
|
|
|
import net.minecraft.block.Block;
|
|
|
|
import net.minecraft.block.material.Material;
|
|
|
|
import net.minecraft.client.renderer.texture.IconRegister;
|
|
|
|
import net.minecraft.entity.Entity;
|
|
|
|
import net.minecraft.entity.EntityLivingBase;
|
|
|
|
import net.minecraft.util.Icon;
|
|
|
|
import net.minecraft.world.IBlockAccess;
|
|
|
|
import net.minecraft.world.World;
|
2013-10-30 02:36:14 +00:00
|
|
|
import net.minecraftforge.fluids.BlockFluidFinite;
|
2013-10-28 04:20:08 +00:00
|
|
|
import net.minecraftforge.fluids.Fluid;
|
|
|
|
import cpw.mods.fml.relauncher.Side;
|
|
|
|
import cpw.mods.fml.relauncher.SideOnly;
|
|
|
|
|
2013-10-30 02:36:14 +00:00
|
|
|
public class BlockFluidHoney extends BlockFluidFinite
|
2013-10-28 04:20:08 +00:00
|
|
|
{
|
|
|
|
public static Icon honeyStillIcon;
|
|
|
|
public static Icon honeyFlowingIcon;
|
|
|
|
|
|
|
|
public BlockFluidHoney(int id, Fluid fluid, Material material)
|
|
|
|
{
|
|
|
|
super(id, fluid, material);
|
|
|
|
|
2013-10-30 02:36:14 +00:00
|
|
|
this.setLightOpacity(1);
|
2013-10-28 04:20:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
|
|
public void registerIcons(IconRegister iconRegister)
|
|
|
|
{
|
|
|
|
honeyStillIcon = iconRegister.registerIcon("biomesoplenty:honey_still");
|
|
|
|
honeyFlowingIcon = iconRegister.registerIcon("biomesoplenty:honey_flowing");
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
|
|
public Icon getIcon(int par1, int par2)
|
|
|
|
{
|
|
|
|
return par1 != 0 && par1 != 1 ? honeyFlowingIcon : honeyStillIcon;
|
|
|
|
}
|
|
|
|
}
|