Class PlayerShear
- java.lang.Object
-
- org.bukkit.event.Event
-
- work.torp.domain.api.events.player.BasePlayer
-
- work.torp.domain.api.events.player.PlayerShear
-
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public final class PlayerShear extends BasePlayer implements org.bukkit.event.Cancellable
-
-
Constructor Summary
Constructors Constructor Description PlayerShear(org.bukkit.entity.Player player, org.bukkit.entity.Entity entity)
PlayerShear This event is called when a player shears an entity in a Domain field
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCancelReason()
org.bukkit.entity.Entity
getShearedEntity()
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
-
-
-
-
Method Detail
-
getShearedEntity
public org.bukkit.entity.Entity getShearedEntity()
-
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
-
-