I know Minecraft uses the LWJGL library, but is that what allows it to have 3D graphics?
LWJGL uses OpenGL
for rendering 2D and 3D graphics.
OpenGL is an API to interact with the GPU and achieve optimal hardware accelerated rendering.
It's also cross-platform, just like Java, making it a natural choice when it comes to graphics.