接口 ServerEvents.Player.AllowDropSelectedItem

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

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

    修饰符和类型
    方法
    说明
    boolean
    allowDropSelectedItem(@NotNull net.minecraft.server.level.ServerPlayer player, boolean all)
    Called when the player drop the selected item.
  • 方法详细资料

    • allowDropSelectedItem

      boolean allowDropSelectedItem(@NotNull @NotNull net.minecraft.server.level.ServerPlayer player, boolean all)
      Called when the player drop the selected item.
      参数:
      player - the player
      all - whether to drop all items
      返回:
      true if should be allowed, otherwise false