public class PlayerUseUnknownEntityEvent extends PlayerEvent
Event.Result
player
Constructor | Description |
---|---|
PlayerUseUnknownEntityEvent(@NotNull Player who,
int entityId,
boolean attack,
@NotNull EquipmentSlot hand) |
Modifier and Type | Method | Description |
---|---|---|
int |
getEntityId() |
|
@NotNull EquipmentSlot |
getHand() |
|
static @NotNull HandlerList |
getHandlerList() |
|
@NotNull HandlerList |
getHandlers() |
|
boolean |
isAttack() |
callEvent, getEventName, isAsynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPlayer
public PlayerUseUnknownEntityEvent(@NotNull @NotNull Player who, int entityId, boolean attack, @NotNull @NotNull EquipmentSlot hand)
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 © 2020. All rights reserved.