Class PlayerPlaceTerrainEvent

All Implemented Interfaces:
Cancellable

public final class PlayerPlaceTerrainEvent extends PlayerWorldEditEvent
Called when a player places terrain (i.e dirt, stone, gravel etc) in the world.
  • Method Details

    • getTerrainID

      public int getTerrainID()
      Gets the terrain id the player wants to place.
      Returns:
      the terrain id.
    • setTerrainID

      public void setTerrainID(int terrainID)
      Changes the terrain id to another id.
      Parameters:
      terrainID - the new terrain id.