GL11.glEnable(GL11.GL_DEPTH_TEST);

Hi! I have a question. I want to do the same as with this example:
if (entity instanceof EntityPlayer)
((EntityPlayer) entity).openGui(TestMod.instance, GuiH.GUIID, world, x, y, z);

Instead of openGui, I want to put GL11.glEnable(GL11.GL_DEPTH_TEST);. How can this be done?And in general, is it possible to somehow enter GL11.glEnable(GL11.GL_DEPTH_TEST) here? I will be very grateful for any help!
 
Сверху