Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/12/19 in all areas

  1. I think this happens because the event bus doesn't care about threads(and is static), and simply sends the event to all listeners. While you are posting the event on the server thread it goes to the event bus which iterates through all listeners, which the client-sided TEs are and gives the event to them. So in a way you made a jump from a server event to a client listener. I don't know for sure though and can only be guessing from my inspection of the EventBus class.
    1 point
  2. Well, your TileLamp only registers itself as an event subscriber on the client, so the event handler method only fires on the client, and as such the wisp is only spawned on the client.
    1 point
  3. Before the registry events fire, so in pre-init.
    1 point
  4. That is correct, but your event handler methods don't have to be static. Again, read the docs I have linked.
    1 point
  5. static initializers != static fields. Initializer means you are instantinating something. If you just use a static field to store data between methods then it's not a static initializer. This is also a false statement. Read the docs on events.
    1 point
  6. You're confusing Launcher Profiles with versions. Go into settings and select a Launcher Profile, you will be able to select what version that profile uses.
    1 point
×
×
  • Create New...

Important Information

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