Class ViewEnderchestEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
de.themoep.ShowItem.api.event.ViewEnderchestEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class ViewEnderchestEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.Cancellable
Event that is called when a player views an enderchest shown by another player. Useful for plugins that provide custom enderchest contents.
  • Nested Class Summary

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

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

    Fields inherited from class org.bukkit.event.player.PlayerEvent

    player
  • Constructor Summary

    Constructors
    Constructor
    Description
    ViewEnderchestEvent(org.bukkit.entity.Player who, EnderData enderData)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    Get the UUID of the player that sent the enderchest
    Get the name of the player that sent the enderchest
    Get the enderchest data that is being shown to the player
    boolean
     
    void
    setCancelled(boolean cancelled)
     
    void
    Set the enderchest data that is being shown to the player

    Methods inherited from class org.bukkit.event.player.PlayerEvent

    getPlayer

    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

    • ViewEnderchestEvent

      public ViewEnderchestEvent(org.bukkit.entity.Player who, EnderData enderData)
  • Method Details

    • getShownData

      public EnderData getShownData()
      Get the enderchest data that is being shown to the player
      Returns:
      The enderchest data
    • setShownData

      public void setShownData(EnderData enderData)
      Set the enderchest data that is being shown to the player
      Parameters:
      enderData - The enderchest data
    • getSenderId

      public UUID getSenderId()
      Get the UUID of the player that sent the enderchest
      Returns:
      The player that sent the enderchest
    • getSenderName

      public String getSenderName()
      Get the name of the player that sent the enderchest
      Returns:
      The name of the player that sent the enderchest
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable