Class FullInventoryEvent

java.lang.Object
org.bukkit.event.Event
com.vk2gpz.autosell.event.FullInventoryEvent

public class FullInventoryEvent extends org.bukkit.event.Event
This event is called when a player's inventory is full and an item is added to it. It is used to handle the case when a player tries to add an item to a full inventory.

This event is not cancellable, and it does not affect the item being added.

  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    FullInventoryEvent(org.bukkit.entity.Player player, org.bukkit.inventory.ItemStack itemStack)
    Creates a new FullInventoryEvent.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
    Gets the handler list for this event.
    @NotNull org.bukkit.event.HandlerList
    Gets the handler list for this event.
    org.bukkit.inventory.ItemStack
    Gets the item stack that was added to the inventory.
    Gets the player who has a full inventory.
    org.bukkit.entity.Player
    Gets the player who has a full inventory.

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FullInventoryEvent

      public FullInventoryEvent(org.bukkit.entity.Player player, org.bukkit.inventory.ItemStack itemStack)
      Creates a new FullInventoryEvent.
      Parameters:
      player - The player who has a full inventory.
      itemStack - The item stack that was added to the inventory.
  • Method Details

    • getName

      public String getName()
      Gets the player who has a full inventory.
      Returns:
      The player who has a full inventory.
    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      Gets the player who has a full inventory.
      Returns:
      The player who has a full inventory.
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Gets the handler list for this event.
      Specified by:
      getHandlers in class org.bukkit.event.Event
      Returns:
      The handler list for this event.
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Gets the handler list for this event.
      Returns:
      The handler list for this event.
    • getItemStack

      public org.bukkit.inventory.ItemStack getItemStack()
      Gets the item stack that was added to the inventory.
      Returns:
      The item stack that was added to the inventory.