2013-05-03 13:00:44 +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.entity.Entity;
|
|
|
|
import net.minecraft.util.AxisAlignedBB;
|
|
|
|
import net.minecraft.world.IBlockAccess;
|
|
|
|
import net.minecraft.world.World;
|
2013-05-29 01:05:27 +00:00
|
|
|
import biomesoplenty.BiomesOPlenty;
|
2013-05-03 13:00:44 +00:00
|
|
|
|
|
|
|
public class BlockQuicksand extends Block
|
|
|
|
{
|
2013-05-31 10:34:02 +00:00
|
|
|
public BlockQuicksand(int par1)
|
|
|
|
{
|
|
|
|
super(par1, Material.sand);
|
|
|
|
this.setCreativeTab(BiomesOPlenty.tabBiomesOPlenty);
|
|
|
|
}
|
|
|
|
|
2013-05-03 13:00:44 +00:00
|
|
|
@Override
|
|
|
|
public void registerIcons(IconRegister par1IconRegister)
|
|
|
|
{
|
2013-07-03 06:01:28 +00:00
|
|
|
blockIcon = par1IconRegister.registerIcon("biomesoplenty:quicksand");
|
2013-05-31 10:34:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean shouldSideBeRendered(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
|
|
|
|
{
|
|
|
|
return true;
|
2013-05-03 13:00:44 +00:00
|
|
|
}
|
|
|
|
|
2013-05-31 10:34:02 +00:00
|
|
|
/**
|
|
|
|
* Triggered whenever an entity collides with this block (enters into the block). Args: world, x, y, z, entity
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public void onEntityCollidedWithBlock(World par1World, int par2, int par3, int par4, Entity par5Entity)
|
|
|
|
{
|
|
|
|
par5Entity.setInWeb();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns a bounding box from the pool of bounding boxes (this means this box can change after the pool has been
|
|
|
|
* cleared to be reused)
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, int par2, int par3, int par4)
|
|
|
|
{
|
|
|
|
return null;
|
|
|
|
}
|
2013-05-03 13:00:44 +00:00
|
|
|
}
|