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'm attempting to render a mob within my Gui screen. In the past I was able to do this using getRenderManager#renderEntity, but since this no longer exists I am trying to use getRenderManager#renderEntityStatic. 

My current attempt: 

        Minecraft.getInstance().getRenderManager().renderEntityStatic(new PigEntity(EntityType.PIG,field_230706_i_.world), 0.0D, 0.0D, 0.0D, 0.0f, partialticks, matrixStack, field_230706_i_.getRenderTypeBuffers().getBufferSource(), 500);

 

This method causes some weird orientation, as shown in the screenshot below. I just want this entity to render from a normal, third person viewpoint. There used to be a getRenderManager#setPlayerViewY but this is gone as well. I found the method getRenderManager#setCameraOrientation, but it doesn't seem to do anything (I'm horrible with Quaternions).  I tried:

getRenderManager().setCameraOrientation(Vector3f.YP.rotationDegrees(180));

Any suggestions? 

315279627_ScreenShot2020-07-10at10_09_24AM.thumb.png.b505dbcda80598291d321c727cce6c89.png

 

Pig feet are nice but what I'm really tryna stare at is some thicc cakeee ;) 

my simple Gui screen class: https://pastebin.com/KMtCvxRy

 

Edit: I figured it out. Just needed to change z pos to move it in front of me lol.

 

Edited by Electric
Solved problem

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.