Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

I am looking at Overriding / Changing the way:

 

net.minecraft.client.renderer.entity.RenderBiped.getArmorResource(Entity entity, ItemStack stack, int slot, String type)

 

is used. I do not want to edit vanilla files as I want this to be compatible with other mods. All I want to do though is to instead creating a ResourceLocation , be able to just have it get a ResourceLocation from my item. This would only trigger if the item is my item. I don't want to release too much information at this moment on why I need it. I just need it. No method is off limits as long as its not editing base files. 

 

I wasn't sure if there was a way to just replace the render biped file all together or not. My entire mod idea is based off this one thing. And if its possible I can get started on this and will than release more on the idea.

 

Thanks in advance for any help.

  • Author

Overriding getArmorTexture isn't what I want to do. getArmorTexture returns a String and getArmorResource takes that string and turns it into a ResourceLocation.

 

I want to Pass a Resourcelocation from getArmorTexture to getArmorResource. I am creating a Buffered Image and want to pass it to get rendered.

 

So I technically need to override getArmorResource to accept ResourceLocation, but to do that I have to change a vanilla file. And I was hoping there is some unknown forgehook I can do that with, Or Possibly Reflections to change it. Which I am trying to research it atm.

  • Author

I believe I figured out what to do.. Thanks for sending me on a search after your last post about the ResourceLocation. It still didn't do what I wanted it to do, but I think I can custom load the texture with texture manager and move it to the correct location... When I try this, I will post what I had done and if it worked or not.

  • Author

I got it figured out. now I need to figure out how to get the icon image from a dynamic image.

 

Minecraft.getMinecraft().renderEngine.loadTexture(resourcelocation, dynamicTexture);

 

I used the above function to create my own custom resourcelocation and link it to the dynamic texture.. than vanilla minecraft reads it normally. I appreciate the help to make me think harder about it.. sometimes you have to just bounce ideas off ppl.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.