Class PlayerHitTerrainEvent

All Implemented Interfaces:
Cancellable

public final class PlayerHitTerrainEvent extends PlayerWorldEditEvent
Called when a player hits terrain with a tool (e.g pickaxe).
  • Method Details

    • getDamage

      public short getDamage()
      Gets the amount of damage the player deals with this hit.
      Returns:
      the amount of damage.
    • getHitPosition

      public Vector3f getHitPosition()
      Gets the world coordinates where the terrain was hit exactly.
      Returns:
      coordinates where the terrain was hit.