Package icu.suc.mc.serverevents
Interface ServerEvents.Player.AllowDropSelectedItem
- Enclosing class:
ServerEvents.Player
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanallowDropSelectedItem(@NotNull net.minecraft.server.level.ServerPlayer player, boolean all) Called when the player drop the selected item.
-
Method Details
-
allowDropSelectedItem
boolean allowDropSelectedItem(@NotNull @NotNull net.minecraft.server.level.ServerPlayer player, boolean all) Called when the player drop the selected item.- Parameters:
player- the playerall- whether to drop all items- Returns:
trueif should be allowed, otherwisefalse
-