Class PlayerEditConstructionEvent

All Implemented Interfaces:
Cancellable

public final class PlayerEditConstructionEvent extends PlayerConstructionEvent
Called when a player edits a construction element (e.g changes texture, rotation, position etc).
  • Method Details

    • getNewTypeID

      public short getNewTypeID()
      Gets the new type ID of the construction element.
      Returns:
      the new construction element type ID.
    • getNewTexture

      public int getNewTexture()
      Gets the new texture of the construction element.
      Returns:
      the new construction element texture ID.
    • getNewChunkPositionX

      public int getNewChunkPositionX()
      Gets the new x offset of the chunk (which contains the construction element).
      Returns:
      the new x chunk offset.
    • getNewChunkPositionY

      public int getNewChunkPositionY()
      Gets the new y offset of the chunk (which contains the construction element).
      Returns:
      the new y chunk offset.
    • getNewChunkPositionZ

      public int getNewChunkPositionZ()
      Gets the new z offset of the chunk (which contains the construction element).
      Returns:
      the new z chunk offset.
    • getNewPosition

      public Vector3f getNewPosition()
      Gets the new world position of the construction element as a Vector3f.
      Returns:
      the new global construction element position as a Vector3f.
    • getNewRotation

      public Quaternion getNewRotation()
      Gets the new rotation of the construction element as a Quaternion.
      Returns:
      the new construction element rotation as a Quaternion.
    • getNewSize

      public Vector3f getNewSize()
      Gets the new size (x, y, z) of the construction element as a Vector3f.
      Returns:
      the new size of the construction element as a Vector3f.
    • getNewTextureScale

      public float getNewTextureScale()
    • getNewThickness

      public float getNewThickness()
    • getNewSurfaceOffset

      public Vector3f getNewSurfaceOffset()
    • getNewSurfaceScale

      public Vector3f getNewSurfaceScale()
    • getNewColor

      public int getNewColor()