Posted June 8, 20178 yr 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 June 8, 20178 yr by bignose956
June 8, 20178 yr In 1.11.2 it's just in net.minecraft.item.ItemCompass, not sure if the code will be the same in both versions but here it is anyway: https://pastebin.com/Mc8LiNRH
June 8, 20178 yr 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.
June 9, 20178 yr Author 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.
June 9, 20178 yr 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.
June 9, 20178 yr In 1.8.9 (before item properties were added), this was handled by TextureCompass rather than the IItemPropertyGetters and overrides in the model. 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.
June 9, 20178 yr Author 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 June 9, 20178 yr by bignose956
June 9, 20178 yr 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.
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.