Under investigation in this letter is a (3+1)-dimensional generalized B-type Kadomtsev-Petviashvili equation, which describes the weakly dispersive waves propagating in a fluid. Employing the Hirota method and symbolic computation, we obtain the lump, breather-wave and rogue-wave solutions under certain constraints. We graphically study the lump waves with the influence of the parameters h1, h3 and h5 which are all the real constants: When h1 increases, amplitude of the lump wave increases, and location of the peak moves; when h3 increases, lump wave’s amplitude decreases, but location of the peak keeps unchanged; when h5 changes, lump wave’s peak location moves, but amplitude keeps unchanged. Breather waves and rogue waves are displayed: Rogue waves emerge when the periods of the breather waves go to the infinity.