Class BucketFill
- java.lang.Object
-
- org.bukkit.event.Event
-
- work.torp.domain.api.events.player.BasePlayer
-
- work.torp.domain.api.events.player.BucketFill
-
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public final class BucketFill extends BasePlayer implements org.bukkit.event.Cancellable
-
-
Constructor Summary
Constructors Constructor Description BucketFill(org.bukkit.entity.Player player, org.bukkit.block.Block block, org.bukkit.Material material)
BucketFill This event is called when a bucket is filled in a Domain field and the block clicked is LAVA or WATER
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bukkit.Material
getBucketType()
java.lang.String
getCancelReason()
org.bukkit.block.Block
getClickedBlock()
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
-
BucketFill
public BucketFill(org.bukkit.entity.Player player, org.bukkit.block.Block block, org.bukkit.Material material)
BucketFill This event is called when a bucket is filled in a Domain field and the block clicked is LAVA or WATER- Parameters:
player
- The player that filled the bucketblock
- The block that was clickedmaterial
- The material of the bucket
-
-
Method Detail
-
getClickedBlock
public org.bukkit.block.Block getClickedBlock()
-
getBucketType
public org.bukkit.Material getBucketType()
-
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
-
-