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
Gets called when a player either clicks or punches an
HologramEntity-
Nested Class Summary
Nested classes/interfaces inherited from class Event
Event.Result -
Field Summary
Fields inherited from class PlayerEvent
player -
Constructor Summary
ConstructorsConstructorDescriptionPlayerInteractHologramEntityEvent(Player player, HologramEntity entity, boolean punch) -
Method Summary
Modifier and TypeMethodDescriptionGet the hologram entity that the player tries to interact with.static HandlerListbooleanisPunch()Get whether the player tried to punch the hologram entity with this interaction.Methods inherited from class PlayerEvent
getPlayerMethods inherited from class Event
getEventName, isAsynchronousMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Cancellable
isCancelled, setCancelled
-
Constructor Details
-
PlayerInteractHologramEntityEvent
-
-
Method Details
-
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:
truein case the player tried to cause damage (by left clicking on the entity)
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-