Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Suggestion] getView method in net.darkhax.bookshelf.client.event.RenderItemEvent #49

Closed
p455w0rd opened this issue Oct 5, 2016 · 1 comment

Comments

@p455w0rd
Copy link

p455w0rd commented Oct 5, 2016

Goal: To be able to retrieve where the item is being rendered so we can render accordingly
Views Needed:

  • 1st Person (left hand)
  • 1st Person (right hand)
  • 3rd Person (left hand)
  • 3rd Person (right hand)
  • head (i presume like the pumpkin mask)
  • gui (inventory slot)
  • fixed (frames)
  • ground

Return Type: ItemCameraTransforms.TransformType

Below is an image where it looks how I want it to in 1st person and 3rd, but not in the slot. I have no way (that I'm aware of) to be able to independently translate the item when it's in the slot.
Incorrect Item Rendering

@Darkhax
Copy link
Member

Darkhax commented Oct 5, 2016

Unfortunately I don't believe it is possible to get this information without a complete rewrite of the system, as vanilla's own items don't have access to this. I may be able to make a system that circumvents vanilla rendering entirely but that would have undesirable effects.

@Darkhax Darkhax closed this as completed Jan 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants