接口 ServerEvents.Player.Join.AllowMessage

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

@FunctionalInterface public static interface ServerEvents.Player.Join.AllowMessage
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
    allowJoinMessage(@NotNull net.minecraft.server.level.ServerPlayer player, @NotNull net.minecraft.network.chat.Component message)
    Called when a player joins a server
  • 方法详细资料

    • allowJoinMessage

      boolean allowJoinMessage(@NotNull @NotNull net.minecraft.server.level.ServerPlayer player, @NotNull @NotNull net.minecraft.network.chat.Component message)
      Called when a player joins a server
      参数:
      player - the player
      message - the join reason
      返回:
      true if should broadcast the message, otherwise false