Klasse PlayerHitConstructionEvent

Alle implementierten Schnittstellen:
Cancellable

public final class PlayerHitConstructionEvent extends PlayerConstructionEvent
Called when a player hits a construction element (e.g planks, beams, posters etc).
Siehe auch:
  • Methodendetails

    • getDamage

      public short getDamage()
      Gets the amount of damage the player causes by hitting the construction element.
      Gibt zurück:
      the amount of damage dealt with this hit.
    • setDamage

      public void setDamage(short damage)
      Sets the amount of damage the player should inflict with this hit.
      Parameter:
      damage - the new amount of damage.
    • getHitPosition

      public Vector3f getHitPosition()
      Gets the world coordinates where the construction element was hit exactly.
      Gibt zurück:
      coordinates where the construction element was hit.
    • getConstructionElement

      public ConstructionElement getConstructionElement()
      Beschreibung aus Klasse kopiert: PlayerConstructionEvent
      Gets the construction element.
      Setzt außer Kraft:
      getConstructionElement in Klasse PlayerConstructionEvent
      Gibt zurück:
      the construction element.