Class PlayerInteractEntity
- java.lang.Object
-
- org.bukkit.event.Event
-
- work.torp.domain.api.events.player.BasePlayer
-
- work.torp.domain.api.events.player.PlayerInteractEntity
-
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public final class PlayerInteractEntity extends BasePlayer implements org.bukkit.event.Cancellable
-
-
Constructor Summary
Constructors Constructor Description PlayerInteractEntity(org.bukkit.entity.Player player, org.bukkit.inventory.EquipmentSlot equipmentSlot, org.bukkit.entity.Entity entity)
PlayerInteractEntity This event is called when a player right clicks entity in a Domain field
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCancelReason()
org.bukkit.inventory.EquipmentSlot
getHand()
org.bukkit.entity.Entity
getRightClicked()
boolean
isCancelled()
void
setCancelled(boolean cancel)
void
setCancelReason(java.lang.String cancelReason)
-
Methods inherited from class work.torp.domain.api.events.player.BasePlayer
getHandlerList, getHandlers, getPlayer, logBaseValues
-
-
-
-
Constructor Detail
-
PlayerInteractEntity
public PlayerInteractEntity(org.bukkit.entity.Player player, org.bukkit.inventory.EquipmentSlot equipmentSlot, org.bukkit.entity.Entity entity)
PlayerInteractEntity This event is called when a player right clicks entity in a Domain field- Parameters:
player
- The player that ran the commandequipmentSlot
- The hand used to interactentity
- The entity being interacted with
-
-
Method Detail
-
getHand
public org.bukkit.inventory.EquipmentSlot getHand()
-
getRightClicked
public org.bukkit.entity.Entity getRightClicked()
-
getCancelReason
public java.lang.String getCancelReason()
-
setCancelReason
public void setCancelReason(java.lang.String cancelReason)
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel)
- Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-
-