Class ModResourcePackCallbacks

java.lang.Object
net.kyori.adventure.platform.modcommon.ModResourcePackCallbacks

public final class ModResourcePackCallbacks extends Object
Resource pack callbacks for the modded environment.
Since:
6.0.0
  • Method Details

    • kickIfNotApplied

      @NotNull public static @NotNull ResourcePackCallback kickIfNotApplied()
      Kick a resource pack receiver if they do not accept a resource pack.
      Returns:
      the kicking callback
      Since:
      6.0.0
    • kickIfNotApplied

      @NotNull public static @NotNull ResourcePackCallback kickIfNotApplied(@NotNull @NotNull Component kickMessage)
      Kick a resource pack receiver if they do not accept a resource pack.
      Parameters:
      kickMessage - the message to kick the player with
      Returns:
      the kicking callback
      Since:
      6.0.0