Class PlayerUseItemEvent

java.lang.Object
eu.sculkpowered.server.event.ResultedEvent<ResultedEvent.GenericResult>
eu.sculkpowered.server.event.player.PlayerUseItemEvent

public final class PlayerUseItemEvent extends ResultedEvent<ResultedEvent.GenericResult>
Represents an event that fires when the client uses an item.
  • Constructor Details

    • PlayerUseItemEvent

      public PlayerUseItemEvent(@NotNull @NotNull Player player, @NotNull @NotNull ItemStack item)
  • Method Details

    • player

      @NotNull public @NotNull Player player()
    • item

      @NotNull public @NotNull ItemStack item()