Class PlayerPlaceWaterEvent

All Implemented Interfaces:
Cancellable

public final class PlayerPlaceWaterEvent extends PlayerWorldEditEvent
Called when a player places water in the world.
  • Method Details

    • getWaterID

      public int getWaterID()
      Gets the id of the water block the player wants to place.
      Returns:
      the water block id.
    • setWaterID

      public void setWaterID(int waterID)
      Changes the water block id to another id.
      Parameters:
      waterID - the new water block id.