BlockWeb
package net.minecraft.block;
public class BlockWeb extends Block
{
public BlockWeb()
{
super(Material.web);
}
public AxisAlignedBB getCollisionBoundingBox(World worldIn, BlockPos pos, IBlockState state)
{
return null; //no solid collisions
}
/* called from Entity.doBlockCollisions() */
public void onEntityCollidedWithBlock(World worldIn, BlockPos pos, IBlockState state, Entity entityIn)
{
entityIn.setInWeb();
}
}