-
Posts
6157 -
Joined
-
Last visited
-
Days Won
59
Everything posted by Animefan8888
-
Try restarting your pc, but show me what you have typed into you run configurations if you are using eclipse, and please remove the code you have posted it is not the cause of this problem.
-
I believe the point of ore dictionary was to make it so other mods could interact with items of the "same type" from other mods, and it automatically says this ironIngot = this ironIngot when dealing with crafting. So lets say I am playing with IC2 and Thermal Expansion they both add a copper ingot. I want to craft something that uses copper from TE, but I only have copper from IC2 what do I do. Thus OreDictionary was born.
-
I'm not sure that I understand what you are wanting to do besides getting the PlayerTabInformation. So let me ask what is your main goal, what are you going to do with this information.
-
First things first you can get rid of the code nothing there is making this happen. Secondly are you able to run Minecraft on the version you are modding for?
-
You want to detect what server the player is on?
-
Server Detection? Like detecting when the player is on the server or when the player is pressing tab?
-
I assume you are going to do something with this can you explain what? And tell me what you have access to ATM.
-
Okay what information is it that you want, the display name of the player? Please include everything.
-
All of the fancy displaying and getting the data is done in the net.minecraft.client.gui.GuiPlayerTabOverlay class so you should look through there to get the data you want.
-
Do you want to change what is displayed when the TabOverlay is displayed? Or do you want to just get the information? Tell me what you want to do exactly please or I might not be able to help you.
-
Have you created a EntityVillager variable if not the event should have an entity variable you can check if it is an EntityVillager, and if so... @SubscribeEvent public void entityVillagerAIOverride(EventYouAreUsingClass event) { if (event.entity != null && event.entity instanceof EntityVillager) { EntityVillager villager = (EntityVillager) event.entity; villager.tasks.add(number, new VillagerAI()); } }[ Also don't forget to register your event using MinecraftForge.EVENT_BUS.register(new EventHandlerClass()); I did suggest that but if he just Overrides the Mating AI he won't have to create a new Entity, and this way it could still be compatible with other mods that extend EntityVillager assuming he chechs to see if the position he is overriding is an instance of the vanilla AI.
-
What do you mean exactly? Do you want a list of all players or do you want to render something when the player tab overlay is being displayed?