接口 ServerEvents.Player.Kick.ModifyReason
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
-
方法概要
修饰符和类型方法说明@NotNull net.minecraft.network.chat.ComponentmodifyKickReason(@NotNull net.minecraft.server.level.ServerPlayer player, @NotNull net.minecraft.network.chat.Component reason) Modifies or provides a reason for a player kicked.
-
方法详细资料
-
modifyKickReason
@NotNull @NotNull net.minecraft.network.chat.Component modifyKickReason(@NotNull @NotNull net.minecraft.server.level.ServerPlayer player, @NotNull @NotNull net.minecraft.network.chat.Component reason) Modifies or provides a reason for a player kicked.- 参数:
player- the playerreason- the kick reason- 返回:
- the new kick reason
-