![]() ![]() I have no idea what is going on here and why it's just gone. Mc.gui.blit(event.getMatrixStack(), x, y, 0, 0, 54, 9) Įverything works as it should works, but for some reason after binding and bliting my texture vanilla food bar just disappears. Int y=mc.getWindow().getGuiScaledHeight()-49 Int x=mc.getWindow().getGuiScaledWidth()/2+10 Mc.getTextureManager().bind(ManaBar.ICONS) LazyOptional manaHandler=mc.player.getCapability(ManaHandlerCapability.MANA_HANDLER_CAPABILITY) If(!mc.gameMode.getPlayerMode().isSurvival()||event.getType()=ElementType.ALL) return Private static final ResourceLocation ICONS=new static void renderManaBar(RenderGameOverlayEvent.Post event) This code of mine makes render of mana bar (it should be right above vanilla food bar): So i added a capability system to my mod and it works fine, but now i have a problem with rendering.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |