Class PlayerInteractHologramEntityEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
de.marcely.bedwars.api.event.player.PlayerInteractHologramEntityEvent
All Implemented Interfaces:
Cancellable

public class PlayerInteractHologramEntityEvent extends PlayerEvent implements Cancellable
Gets called when a player either clicks or punches an HologramEntity
  • Constructor Details

    • PlayerInteractHologramEntityEvent

      public PlayerInteractHologramEntityEvent(Player player, HologramEntity entity, boolean punch)
  • Method Details

    • getEntity

      public HologramEntity getEntity()
      Get the hologram entity that the player tries to interact with.
      Returns:
      The involved hologram entity
    • isPunch

      public boolean isPunch()
      Get whether the player tried to punch the hologram entity with this interaction.
      Returns:
      true in case the player tried to cause damage (by left clicking on the entity)
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()