[1.7.10] Turn block to Default Block (Techne Model)
-
Recently Browsing
- No registered users viewing this page.
-
Posts
-
Since that is a non-static method, should I be extending ForgeIngameGui for my AbstractScreen class instead of extending the Forge Screen class? What I'm drawing to the screen is a custom inventory texture, so it needs child widgets such as buttons and items to click. Based on what I see in the ForgeIngameGui and the Gui classes, ForgeIngameGui seems more for HUD overlays. Is that correct and I should stay with the Screen class?
-
By eeyorenailbag · Posted
I ran the gradlew refresh dependencies and gradlew clean, but I've only been doing this for like... 5 days maybe? Is there a separate command for this? And thank you for responding btw ^ v ^ -
By diesieben07 · Posted
Use ForgeGui#setupOverlayRenderState to bind a texture inside a HUD overlay, do not use bindForSetup. -
When I blit this to the screen, I'm doing it like so: minecraft.textureManager.bindForSetup(new ResourceLocation(Genesis.MOD_ID, "textures/gui/inventory.png")); ... poseStack.pushPose(); Gui.blit(pMatrixStack, pos.x(), pos.y(), 0, start.x(), start.y(), dimensions.x(), dimensions.y(), textureSize.y(), textureSize.x()); poseStack.popPose(); However, the result is this instead of my texture: https://gyazo.com/5628b1b1013d37e3f0fa8a476800856d
-
I should've specified. I used ResourceLocation#toDebugFileName which does: public String toDebugFileName() { return this.toString().replace('/', '_').replace(':', '_'); } So if just do the normal ResourceLocation#toString, the output is: "genesis:textures/gui/inventory.png".
-
-
Topics
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.