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.

@FunctionalInterface public static interface ServerEvents.Player.AllowDropSelectedItem
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    allowDropSelectedItem(@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 player
      all - whether to drop all items
      Returns:
      true if should be allowed, otherwise false