Class PlayerInteract
- java.lang.Object
-
- org.bukkit.event.Event
-
- work.torp.domain.api.events.player.BasePlayer
-
- work.torp.domain.api.events.player.PlayerInteract
-
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public final class PlayerInteract extends BasePlayer implements org.bukkit.event.Cancellable
-
-
Constructor Summary
Constructors Constructor Description PlayerInteract(org.bukkit.entity.Player player, org.bukkit.inventory.EquipmentSlot equipmentSlot, org.bukkit.event.block.Action action, org.bukkit.block.Block block)
PlayerInteracts This event is called when a player interacts with something in a Domain field
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCancelReason()
boolean
isCancelled()
void
setBlockInteraction(boolean cancel)
void
setCancelled(boolean cancel)
void
setCancelReason(java.lang.String cancelReason)
void
setHandInteraction(boolean cancel)
org.bukkit.event.Event.Result
useBlockInteraction()
org.bukkit.event.Event.Result
useHandInteraction()
-
Methods inherited from class work.torp.domain.api.events.player.BasePlayer
getHandlerList, getHandlers, getPlayer, logBaseValues
-
-
-
-
Constructor Detail
-
PlayerInteract
public PlayerInteract(org.bukkit.entity.Player player, org.bukkit.inventory.EquipmentSlot equipmentSlot, org.bukkit.event.block.Action action, org.bukkit.block.Block block)
PlayerInteracts This event is called when a player interacts with something in a Domain field- Parameters:
player
- - The player that ran the command
-
-
Method Detail
-
getCancelReason
public java.lang.String getCancelReason()
-
setCancelReason
public void setCancelReason(java.lang.String cancelReason)
-
useBlockInteraction
public org.bukkit.event.Event.Result useBlockInteraction()
-
setBlockInteraction
public void setBlockInteraction(boolean cancel)
-
useHandInteraction
public org.bukkit.event.Event.Result useHandInteraction()
-
setHandInteraction
public void setHandInteraction(boolean cancel)
-
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
-
-