Romsik788 Posted August 3, 2018 Posted August 3, 2018 (edited) I have a texture and me need to render its upper part. How to do it? Edited August 3, 2018 by Romsik788 Error Quote
jabelar Posted August 3, 2018 Posted August 3, 2018 In Minecraft, the Gui#drawTexturedModalRect() method is a good reference. It assumes a texture that is already bound but then takes in the x, y position to draw, the textureX and textureY position within the texture, and the height and width. Quote Check out my tutorials here: http://jabelarminecraft.blogspot.com/
Romsik788 Posted August 3, 2018 Author Posted August 3, 2018 @jabelar Can you give me an example of the code with explanations? Quote
Animefan8888 Posted August 3, 2018 Posted August 3, 2018 33 minutes ago, Romsik788 said: @jabelar Can you give me an example of the code with explanations? Look at any gui. Quote VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
jabelar Posted August 3, 2018 Posted August 3, 2018 4 hours ago, Romsik788 said: @jabelar Can you give me an example of the code with explanations? Use Eclipse (or whatever IDE you're using) and look at the declaration for that method and then look at the Call Hierarchy for that method. The declaration with show you the code within the method and the Call Hierachy will tell you everywhere it is used (and you can check those out to get better examples). Quote Check out my tutorials here: http://jabelarminecraft.blogspot.com/
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.