2018-09-13 12:03:28 -04:00
|
|
|
package noppes.npcs.client;
|
|
|
|
|
|
2022-01-30 04:05:01 -06:00
|
|
|
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
2022-01-30 13:29:00 -06:00
|
|
|
import net.minecraft.client.renderer.OpenGlHelper;
|
2022-01-30 04:05:01 -06:00
|
|
|
import net.minecraftforge.client.event.RenderGameOverlayEvent;
|
|
|
|
|
import noppes.npcs.client.gui.customoverlay.OverlayCustom;
|
2022-01-30 13:29:00 -06:00
|
|
|
import org.lwjgl.opengl.GL11;
|
2018-09-13 12:03:28 -04:00
|
|
|
|
2022-01-30 04:05:01 -06:00
|
|
|
public class ClientEventHandler {
|
|
|
|
|
@SubscribeEvent
|
2022-01-30 13:29:00 -06:00
|
|
|
public void onOverlayRender(RenderGameOverlayEvent.Post event){
|
|
|
|
|
if(event.type == RenderGameOverlayEvent.ElementType.ALL) {
|
|
|
|
|
for (OverlayCustom overlayCustom : Client.customOverlays.values()) {
|
|
|
|
|
overlayCustom.renderGameOverlay(event.partialTicks);
|
|
|
|
|
}
|
2022-01-30 04:05:01 -06:00
|
|
|
}
|
|
|
|
|
}
|
2018-09-13 12:03:28 -04:00
|
|
|
}
|