Posted April 28, 201510 yr Hello everyone, I have been studiing events, and right now I am really confused what the difference between EntityConstrcuting and EntityJoinWorld is and when to use which. Can anyone help? Greetz Mistram
April 28, 201510 yr EntityConstrcuting is fired during the Entity's constructor. EntityJoinWorld is fired when the Entity....joins the world. 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.
April 28, 201510 yr Author I guess I need to specify my question. Is entityjoinworld ALWAYS called after the entity gots constructed? If yes when would it be better to use the one or the other event
April 28, 201510 yr Is entityjoinworld ALWAYS called after the entity gots constructed? Entities can be constructed and never spawned. But generally, yes. 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.
April 28, 201510 yr Also note that it seems that EntityConstructing is called at the *beginning* of the constructor. So if you set fields in the constructor, I've found that they are not available at the time the event is called. For example you won't have a position for the entity. Check out my tutorials here: http://jabelarminecraft.blogspot.com/
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.