Class ModResourcePackCallbacks
java.lang.Object
net.kyori.adventure.platform.modcommon.ModResourcePackCallbacks
Resource pack callbacks for the modded environment.
- Since:
- 6.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull ResourcePackCallbackKick a resource pack receiver if they do not accept a resource pack.static @NotNull ResourcePackCallbackkickIfNotApplied(@NotNull Component kickMessage) Kick a resource pack receiver if they do not accept a resource pack.
-
Method Details
-
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
-