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.

@FunctionalInterface public static interface ServerLifecycleEvents.SyncDataPackContents
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 Type
    Method
    Description
    void
    onSyncDataPackContents(net.minecraft.server.level.ServerPlayer player, boolean joined)
     
  • Method Details

    • onSyncDataPackContents

      void onSyncDataPackContents(net.minecraft.server.level.ServerPlayer player, boolean joined)