Interface MoveEntityEvent

    • Method Detail

      • entity

        Entity entity()
        Gets the Entity.
        Returns:
        The entity
      • originalPosition

        Vector3d originalPosition()
        Gets the position the Entity came from.
        Returns:
        The original position
      • originalDestinationPosition

        Vector3d originalDestinationPosition()
        Gets the position the Entity would have been going to.
        Returns:
        The original destination
      • destinationPosition

        Vector3d destinationPosition()
        Gets the position the Entity will go to.
        Returns:
        The new position
      • setDestinationPosition

        void setDestinationPosition​(Vector3d position)
        Sets the new position the Entity will go to.
        Parameters:
        position - The new position