接口 ServerEvents.Player.AllowDropSelectedItem
- 封闭类:
ServerEvents.Player
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
-
方法概要
修饰符和类型方法说明booleanallowDropSelectedItem(@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 playerall- whether to drop all items- 返回:
trueif should be allowed, otherwisefalse
-