Cancellable
public class PlayerInteractAtEntityEvent extends PlayerInteractEntityEvent
PlayerInteractEntityEvent
.
Users are advised to listen to this (parent) class unless specifically required.
Event.Result
player
clickedEntity
Constructor | Description |
---|---|
PlayerInteractAtEntityEvent(@NotNull Player who,
@NotNull Entity clickedEntity,
@NotNull Vector position) |
|
PlayerInteractAtEntityEvent(@NotNull Player who,
@NotNull Entity clickedEntity,
@NotNull Vector position,
@NotNull EquipmentSlot hand) |
Modifier and Type | Method | Description |
---|---|---|
@NotNull Vector |
getClickedPosition() |
|
static @NotNull HandlerList |
getHandlerList() |
|
@NotNull HandlerList |
getHandlers() |
callEvent, getEventName, isAsynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPlayer
getHand, getRightClicked, isCancelled, setCancelled
public PlayerInteractAtEntityEvent(@NotNull @NotNull Player who, @NotNull @NotNull Entity clickedEntity, @NotNull @NotNull Vector position)
public PlayerInteractAtEntityEvent(@NotNull @NotNull Player who, @NotNull @NotNull Entity clickedEntity, @NotNull @NotNull Vector position, @NotNull @NotNull EquipmentSlot hand)
@NotNull public @NotNull Vector getClickedPosition()
@NotNull public @NotNull HandlerList getHandlers()
getHandlers
in class PlayerInteractEntityEvent
@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2020. All rights reserved.