Interface ServerLifecycleEvents.SyncDataPackContents
- Enclosing class:
- ServerLifecycleEvents
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
When a player needs the server's datapack contents: once as they log in (
joined is true), and for every
player after a datapack reload such as /reload (joined is false). Send data loaded from datapacks
(by ReloadListeners) to clients here.-
Method Summary
Modifier and TypeMethodDescriptionvoidonSyncDataPackContents(net.minecraft.server.level.ServerPlayer player, boolean joined)
-
Method Details
-
onSyncDataPackContents
void onSyncDataPackContents(net.minecraft.server.level.ServerPlayer player, boolean joined)
-