Posted December 1, 20177 yr I have this function public void Reload(ItemStack stack, World world, EntityPlayer player, EnumHand hand) { } but I cant call the function from another class cause of its parms, how would I do it? V:1.10.2
December 1, 20177 yr What do you mean, you can't call it because of one of the parameters? What about that parameter? Which one? What are you doing? From where? 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.
December 1, 20177 yr Author 40 minutes ago, Draco18s said: What do you mean, you can't call it because of one of the parameters? What about that parameter? Which one? What are you doing? From where? Im trying to call it from my eventhandler where i have a keybind setup wich works fine (i have printed to console) the issue is, when i try to call the function from anywhere it says i need to add arguments to match but the defasult is null and Im not sure what to replace them with. this is what my quickfix throws at me as a fix. ItemGun.Reload(null, null, null, null); -thanks in advanced Edited December 1, 20177 yr by RustyGearGames
December 1, 20177 yr 1 minute ago, RustyGearGames said: keybind You're doing everything wrong. Keyboard events only happen on the client. Game state is stored on the server. You must use packets 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.
December 1, 20177 yr Author 1 minute ago, Draco18s said: You're doing everything wrong. Keyboard events only happen on the client. Game state is stored on the server. You must use packets ah, i was afraid of this, how would i send packets?
December 1, 20177 yr http://mcforge.readthedocs.io/en/latest/networking/simpleimpl/ Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
December 1, 20177 yr Author 1 minute ago, larsgerrits said: http://mcforge.readthedocs.io/en/latest/networking/simpleimpl/ thank you
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.