Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static final ResourceLocation BAMBOO_ICONS = new ResourceLocation(Wildlife.MOD_ID, "textures/gui/bamboo.png");
- public static ForgeIngameGui INSTANCE = new ForgeIngameGui(Minecraft.getInstance());
- @SubscribeEvent(priority = EventPriority.LOW)
- public static void renderHunger(RenderGameOverlayEvent.PreLayer event) {
- // Replace vanilla hunger bar texture.
- if (event.getOverlay() == ForgeIngameGui.FOOD_LEVEL_ELEMENT) {
- RenderSystem.setShaderTexture(0, BAMBOO_ICONS);
- INSTANCE.renderFood(event.getWindow().getScreenWidth(), event.getWindow().getScreenHeight(), event.getMatrixStack());
- event.setCanceled(true);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement