2013-05-10 20:28:30 +00:00
|
|
|
package biomesoplenty.blocks;
|
|
|
|
|
|
|
|
import net.minecraft.block.Block;
|
|
|
|
import net.minecraft.block.material.Material;
|
|
|
|
import net.minecraft.client.renderer.texture.IconRegister;
|
|
|
|
import net.minecraft.world.IBlockAccess;
|
2013-05-11 07:48:02 +00:00
|
|
|
import biomesoplenty.BiomesOPlenty;
|
|
|
|
import cpw.mods.fml.relauncher.Side;
|
|
|
|
import cpw.mods.fml.relauncher.SideOnly;
|
2013-05-10 20:28:30 +00:00
|
|
|
|
|
|
|
public class BlockCloud extends Block
|
|
|
|
{
|
|
|
|
public BlockCloud(int par1)
|
|
|
|
{
|
|
|
|
super(par1, Material.sponge);
|
|
|
|
this.setCreativeTab(BiomesOPlenty.tabBiomesOPlenty);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void registerIcons(IconRegister par1IconRegister)
|
|
|
|
{
|
|
|
|
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:cloud");
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns which pass should this block be rendered on. 0 for solids and 1 for alpha
|
|
|
|
*/
|
|
|
|
public int getRenderBlockPass()
|
|
|
|
{
|
|
|
|
return 1;
|
|
|
|
}
|
2013-05-11 07:48:02 +00:00
|
|
|
|
|
|
|
public boolean isOpaqueCube()
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
2013-05-10 20:28:30 +00:00
|
|
|
|
|
|
|
@Override
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns true if the given side of this block type should be rendered, if the adjacent block is at the given
|
|
|
|
* coordinates. Args: blockAccess, x, y, z, side
|
|
|
|
*/
|
|
|
|
public boolean shouldSideBeRendered(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
|
|
|
|
{
|
2013-05-11 07:48:02 +00:00
|
|
|
return true;//super.shouldSideBeRendered(par1IBlockAccess, par2, par3, par4, 1 - par5);
|
2013-05-10 20:28:30 +00:00
|
|
|
}
|
|
|
|
}
|