Class WorldFluidPlaceEvent

java.lang.Object
org.bukkit.event.Event
fr.robie.machineengine.api.paper.event.WorldFluidPlaceEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public final class WorldFluidPlaceEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
A placeable fluid is about to go into a block (D46). Cancel it to keep the block as it is.
  • Constructor Details

    • WorldFluidPlaceEvent

      public WorldFluidPlaceEvent(@NotNull @NotNull org.bukkit.block.Block block, @NotNull @NotNull FluidType fluid, @NotNull @NotNull WorldFluidPlaceEvent.Cause cause)
  • Method Details

    • getBlock

      @NotNull public @NotNull org.bukkit.block.Block getBlock()
    • getFluid

      @NotNull public @NotNull FluidType getFluid()
    • getCause

      @NotNull public @NotNull WorldFluidPlaceEvent.Cause getCause()
    • 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
    • getHandlerList

      @NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event