Jump to content

[1.8.9] Where is the compass source code?


bignose956

Recommended Posts

Does anyone know where the source code for compasses is located? I can't find it anywhere, and already checked:

  • net.minecraft.item
  • net.minecraft.entity.item
  • net.minecraft.entity.player
  • net.minecraft.world
  • net.minecraft.pathfinding
  • net.minecraft.inventory

and I can't go on like this! :(

Edited by bignose956
Link to comment
Share on other sites

If you're trying to figure out how the texture updates, part of it is in the Item class and the rest is in its Item Model JSON file.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

20 hours ago, Draco18s said:

If you're trying to figure out how the texture updates, part of it is in the Item class and the rest is in its Item Model JSON file.

Well, I specifically want to see the API that tells the game which of the 32 frames to render.

Link to comment
Share on other sites

That would be the ItemPropertyOverride section at the top of the item's class.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

In 1.8.9 (before item properties were added), this was handled by TextureCompass rather than the IItemPropertyGetters and overrides in the model.

  • Like 1

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

14 minutes ago, Choonster said:

 

14 minutes ago, Choonster said:

In 1.8.9 (before item properties were added), this was handled by TextureCompass rather than the IItemPropertyGetters and overrides in the model.

Do you know where that class is located?

Edited by bignose956
Link to comment
Share on other sites

43 minutes ago, bignose956 said:

Do you know where that class is located?

 

Use your IDE to search for the class by name. In IDEA, use Ctrl-N or Navigate > Class. In Eclipse, use Ctrl-Shift-T or Navigate > Open Type.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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