接口 ServerEvents.Player.Kick.ModifyReason

封闭类:
ServerEvents.Player.Kick
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public static interface ServerEvents.Player.Kick.ModifyReason
  • 方法概要

    修饰符和类型
    方法
    说明
    @NotNull net.minecraft.network.chat.Component
    modifyKickReason(@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 player
      reason - the kick reason
      返回:
      the new kick reason