Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Mod.EventBusSubscriber(modid = Wildlife.MOD_ID, bus = Mod.EventBusSubscriber.Bus.FORGE, value = Dist.CLIENT)
- public class ClientAnimalEvents {
- public static final ResourceLocation BAMBOO_ICONS = new ResourceLocation(Wildlife.MOD_ID, "textures/gui/bamboo.png");
- public static ForgeIngameGui INSTANCE = new ForgeIngameGui(Minecraft.getInstance());
- @SubscribeEvent
- public void renderHunger(RenderGameOverlayEvent.PreLayer event) {
- // Replace vanilla hunger bar texture.
- if (event.getOverlay() == ForgeIngameGui.FOOD_LEVEL_ELEMENT) {
- INSTANCE.setupOverlayRenderState(true, false, BAMBOO_ICONS);
- INSTANCE.renderFood(event.getWindow().getScreenWidth(), event.getWindow().getScreenHeight(), event.getMatrixStack());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement