Class BucketFill

  • All Implemented Interfaces:
    org.bukkit.event.Cancellable

    public final class BucketFill
    extends BasePlayer
    implements org.bukkit.event.Cancellable
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.bukkit.event.Event

        org.bukkit.event.Event.Result
    • 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
    • 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 bucket
        block - The block that was clicked
        material - 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 interface org.bukkit.event.Cancellable
      • setCancelled

        public void setCancelled​(boolean cancel)
        Specified by:
        setCancelled in interface org.bukkit.event.Cancellable