public class PlayerUseUnknownEntityEvent extends PlayerEvent
Event.Result
player
Constructor and Description |
---|
PlayerUseUnknownEntityEvent(@NotNull Player who,
int entityId,
boolean attack,
@NotNull EquipmentSlot hand) |
Modifier and Type | Method and Description |
---|---|
int |
getEntityId() |
@NotNull EquipmentSlot |
getHand() |
static @NotNull HandlerList |
getHandlerList() |
@NotNull HandlerList |
getHandlers() |
boolean |
isAttack() |
getPlayer
callEvent, getEventName, isAsynchronous
public int getEntityId()
public boolean isAttack()
@NotNull public @NotNull EquipmentSlot getHand()
@NotNull public @NotNull HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2021. All rights reserved.