Package com.minecolonies.core.event
Class DataPackSyncEventHandler
java.lang.Object
com.minecolonies.core.event.DataPackSyncEventHandler
Handles synching of custom datapack and compatibility data from server to client (and initial population
for the server in both single-player and dedicated).
As of Forge 36.2.4, at least, events happen in this order:
For Single Player, on startup:
-- JsonReloadListeners, TagsUpdatedEvent, FMLServerAboutToStart, FMLServerStarted, OnDatapackSyncEvent, RecipesUpdatedEvent
For Dedicated Server, on startup:
-- JsonReloadListeners, TagsUpdatedEvent, FMLServerAboutToStart, FMLServerStarted
For Remote Client, on login:
-- OnDatapackSyncEvent [server], PlayerLoggedInEvent [server], RecipesUpdatedEvent [client], TagsUpdatedEvent [client]
On /reload:
-- JsonReloadListeners, TagsUpdatedEvent [server], OnDatapackSyncEvent [server], TagsUpdatedEvent [remote client], RecipesUpdatedEvent [client]
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classEvents subscribed on client-side only.static classEvents subscribed on both client and server (but mostly for server-side events). -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DataPackSyncEventHandler
public DataPackSyncEventHandler()
-